-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
1.9.4, 2.3.6
-
None
-
MOODLE_19_STABLE, MOODLE_23_STABLE
-
Easy
In /course/report/log/index.php, print_mnet_log is called with the second argument being the course ID, rather than the entire course object. However, print_mnet_log in /course/lib.php still tries to access $course->id, which of course fails. Probably the easiest fix is to replace "$course->id" with just "$course" within print_mnet_log. Additionally, it may be good to rename the variable to be "$courseid" instead of just "$course", to make things clearer.