]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed typo causing restore to existing courses not to work. MDL-14549 ; merged from...
authorstronk7 <stronk7>
Thu, 24 Apr 2008 21:49:07 +0000 (21:49 +0000)
committerstronk7 <stronk7>
Thu, 24 Apr 2008 21:49:07 +0000 (21:49 +0000)
backup/restore_check.html

index ae992d12d143a3ab8ad8438ad235a80d64af91d4..746b846dfb3f4a1fa75b739438f82b043320bade 100644 (file)
 
     //If the user is a teacher and not a creator or we are restoring from within SITEID
 
-    if (!user_can_create_courses() || $id = SITEID) {
+    if (!user_can_create_courses() || $id == SITEID) {
         $restore->course_id = $id;
         if ($restore->restoreto == 0) {
             $restore->deleting = true;