diff --git a/backup/restore_execute.html b/backup/restore_execute.html
index 07ee8533cb5..b7ac5770e53 100644
--- a/backup/restore_execute.html
+++ b/backup/restore_execute.html
@@ -54,7 +54,7 @@
//Saving conversion id variables into backup_tables
if ($restore->restoreto ==1) {
echo "
".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 "";
diff --git a/backup/restorelib.php b/backup/restorelib.php
index 3c90eb7d9a1..20c45a80b29 100644
--- a/backup/restorelib.php
+++ b/backup/restorelib.php
@@ -1532,7 +1532,7 @@
$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