]> git.mjollnir.org Git - moodle.git/commitdiff
Removing PHP notice in metacourse assign courses page (bug 2479)
authormjollnir_ <mjollnir_>
Mon, 7 Feb 2005 21:10:25 +0000 (21:10 +0000)
committermjollnir_ <mjollnir_>
Mon, 7 Feb 2005 21:10:25 +0000 (21:10 +0000)
course/importstudents.php

index d3c4bc3f3aa118539aa9c0490a05ba167d585558..433afebf1f59e862dff8518c583db04e45ade834 100644 (file)
@@ -81,8 +81,9 @@
             $frm->previoussearch = 0;
         }
     }
+    
 
-    $previoussearch = (!empty($frm->search) or ($frm->previoussearch == 1)) ;
+    $previoussearch = (is_object($frm) && ((!empty($frm->search) or ($frm->previoussearch == 1)))) ;
 
     /// Get all existing students and teachers for this course.
     if(! $alreadycourses = get_courses_in_metacourse($course->id)) {