Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.9.4
-
Fix Version/s: None
-
Component/s: MNet
-
Labels:None
-
Difficulty:Easy
-
Affected Branches:MOODLE_19_STABLE
Description
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.
Attachments
Issue Links
| This issue will help resolve: | ||||
| MDL-21260 | General open bugs |
|
|
|
the second param for the function print_mnet_log has been changed from $id to $course.
This approach is better than changing the body of function to use $course instead of $course->id because print_mnet_log calls build_mnet_logs_array which also requires the $course object.