Removing PHP notice in metacourse assign courses page (bug 2479)

This commit is contained in:
mjollnir_ 2005-02-07 21:10:25 +00:00
parent 832e87dfd8
commit a45ee54ee1

View 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)) {