From: moodler Date: Mon, 23 Dec 2002 10:27:57 +0000 (+0000) Subject: Fixes for log display X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6aeec7f8f8dc12393da879da9b84685aa5b0ce60;p=moodle.git Fixes for log display --- diff --git a/course/lib.php b/course/lib.php index c6c1035661..49dabcffcc 100644 --- a/course/lib.php +++ b/course/lib.php @@ -126,7 +126,7 @@ function print_log($course, $user=0, $date=0, $order="ORDER BY l.time ASC") { $selector .= " AND l.time > '$date' AND l.time < '$enddate'"; } - if (!$logs = get_logs($select, $order)) { + if (!$logs = get_logs($selector, $order)) { notify("No logs found!"); print_footer($course); exit; diff --git a/course/log.php b/course/log.php index bf7732f69d..29450a2c0f 100644 --- a/course/log.php +++ b/course/log.php @@ -5,8 +5,8 @@ require("lib.php"); require_variable($id); // Course ID - optional_variable($user); // User to display - optional_variable($date); // Date to display + optional_variable($user, 0); // User to display + optional_variable($date, 0); // Date to display require_login($id);