MDL-32251 Two more E_STRICT detected on tests execution
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 3 Apr 2012 19:59:25 +0000 (21:59 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 3 Apr 2012 19:59:25 +0000 (21:59 +0200)
backup/converter/imscc11/backuplib.php
mod/data/simpletest/test_advanced_search_sql.php

index 52ca776..81b9657 100644 (file)
@@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die();
 require_once($CFG->dirroot . '/backup/converter/convertlib.php');
 
 class imscc11_export_converter extends base_converter {
-    public function get_deps() {
+    static public function get_deps() {
         global $CFG;
         require_once($CFG->dirroot . '/backup/util/settings/setting_dependency.class.php');
         return array(
index 6d3e76d..7acd6f3 100644 (file)
@@ -151,6 +151,7 @@ class data_advanced_search_sql_test extends UnitTestCaseUsingDatabase {
             } else {
                 $val = $field->data;
             }
+            $search_array[$field->id] = new stdClass();
             list($search_array[$field->id]->sql, $search_array[$field->id]->params) = $searchfield->generate_sql('c' . $field->id, $val);
         }
 
@@ -241,4 +242,4 @@ class data_advanced_search_sql_test extends UnitTestCaseUsingDatabase {
             $DB->insert_record($tablename, $fieldinfo[$j], false);
         }
     }
-}
\ No newline at end of file
+}