]> git.mjollnir.org Git - moodle.git/commitdiff
If group isn't detected when restoring events, default it to 0
authorstronk7 <stronk7>
Tue, 27 Apr 2004 22:37:01 +0000 (22:37 +0000)
committerstronk7 <stronk7>
Tue, 27 Apr 2004 22:37:01 +0000 (22:37 +0000)
backup/restorelib.php

index ff6777fc4b61f12154ae16aa46d5f3048f962824..d167dc1b2473a9fe4918b07549725e89acf7a107 100644 (file)
                             $group = backup_getid($restore->backup_unique_code,"group",$eve->groupid);
                             if ($group) {
                                 $eve->groupid = $group->new_id;
+                            } else {
+                                //Assign it to group 0
+                                $eve->groupid = 0
                             }
 
                             //The structure is equal to the db, so insert the event