]> git.mjollnir.org Git - moodle.git/commitdiff
Variables passed by reference warning is out !!
authorstronk7 <stronk7>
Thu, 31 Jul 2003 16:44:52 +0000 (16:44 +0000)
committerstronk7 <stronk7>
Thu, 31 Jul 2003 16:44:52 +0000 (16:44 +0000)
backup/restore_execute.html
backup/restorelib.php

index 07ee8533cb5de18753cee9ea031048ef8a52ff43..b7ac5770e53280a3df0137d15995e6f730d25d2a 100644 (file)
@@ -54,7 +54,7 @@
     //Saving conversion id variables into backup_tables
     if ($restore->restoreto ==1) {
         echo "<li>".get_string("creatingnewcourse");
-        $status = restore_create_new_course($restore,&$course_header);
+        $status = restore_create_new_course($restore,$course_header);
         //Print course fullname and shortname and category
         if ($status) {
             echo "<ul>";
index 3c90eb7d9a1e0a8af23a0d8c163dbec5800e5dda..20c45a80b2949cb85f2a9058d02ab8a26e173755 100644 (file)
         $moodle_parser = new MoodleParser();
         $moodle_parser->todo = $todo;
         $moodle_parser->preferences = $preferences;
-        xml_set_object($xml_parser,&$moodle_parser);
+        xml_set_object($xml_parser,$moodle_parser);
         //Depending of the todo we use some element_handler or another
         if ($todo == "INFO") {
             //Define handlers to that zone