diff --git a/course/lib.php b/course/lib.php index 84c98d0cabc89..bea2b68066834 100644 --- a/course/lib.php +++ b/course/lib.php @@ -217,7 +217,7 @@ function build_mnet_logs_array($hostid, $course, $user=0, $date=0, $order="l.tim function build_logs_array($course, $user=0, $date=0, $order="l.time ASC", $limitfrom='', $limitnum='', $modname="", $modid=0, $modaction="", $groupid=0) { - global $DB, $SESSION; + global $DB, $SESSION, $USER; // It is assumed that $date is the GMT time of midnight for that day, // and so the next 86400 seconds worth of logs are printed.