diff --git a/course/lib.php b/course/lib.php index a1325baef98..4f1404b02ed 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1843,6 +1843,7 @@ function print_courses($category) { function print_course($course) { global $CFG, $USER; + $status = ''; //initiate $status variable to avoid PHP notice see MDL-14295 if (isset($course->context)) { $context = $course->context;