From d09f3c80acc6d96b3361bf5aea3cd30edf45ea91 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 28 Aug 2003 11:57:21 +0000 Subject: [PATCH] Initialiase $totalcount to prevent warnings --- course/lib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/course/lib.php b/course/lib.php index 4aecfaaff1..674c34eee8 100644 --- a/course/lib.php +++ b/course/lib.php @@ -147,6 +147,8 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per $selector .= " AND l.time > '$date' AND l.time < '$enddate'"; } + $totalcount = 0; // Initialise + if (!$logs = get_logs($selector, $order, $page*$perpage, $perpage, $totalcount)) { notify("No logs found!"); print_footer($course); -- 2.39.5