From 6aeec7f8f8dc12393da879da9b84685aa5b0ce60 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 23 Dec 2002 10:27:57 +0000 Subject: [PATCH] Fixes for log display --- course/lib.php | 2 +- course/log.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.5