Fixed notice when restoring a backup file that was created with Users: none.

This commit is contained in:
tjhunt
2006-12-05 18:38:56 +00:00
parent b036f941e3
commit 89475b805d
+1 -1
View File
@@ -6197,7 +6197,7 @@
foreach ($assignments as $assignment) {
$olduser = backup_getid($restore->backup_unique_code,"user",$assignment->userid);
if ($olduser->info == "notincourse") { // it's possible that user is not in the course
if (!$olduser || $olduser->info == "notincourse") { // it's possible that user is not in the course
continue;
}
$assignment->userid = $olduser->new_id; // new userid here