From: moodler Date: Thu, 28 Aug 2003 11:57:21 +0000 (+0000) Subject: Initialiase $totalcount to prevent warnings X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d09f3c80acc6d96b3361bf5aea3cd30edf45ea91;p=moodle.git Initialiase $totalcount to prevent warnings --- 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);