mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
Removing PHP notice in metacourse assign courses page (bug 2479)
This commit is contained in:
parent
832e87dfd8
commit
a45ee54ee1
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user