From: moodler Date: Sat, 26 Apr 2003 14:12:12 +0000 (+0000) Subject: Get less logs from the database X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=667ab3252b316b44e1dfe45c2471242cb6b93eae;p=moodle.git Get less logs from the database --- diff --git a/course/lib.php b/course/lib.php index 017aca4e00..fc353e703a 100644 --- a/course/lib.php +++ b/course/lib.php @@ -320,10 +320,14 @@ function print_recent_activity($course) { $timemaxrecent = time() - COURSE_MAX_RECENT_PERIOD; if ($timestart < $timemaxrecent) { $timestart = $timemaxrecent; - echo "

Logs start from: ".userdate($timestart)."

"; } - if (! $logs = get_records_select("log", "time > '$timestart' AND course = '$course->id'", "time ASC")) { + if (! $logs = get_records_select("log", "time > '$timestart' AND ". + "course = '$course->id' AND ". + "module <> 'course' AND ". + "module <> 'user' AND ". + "action <> 'view' AND ". + "action <> 'view all' ", "time ASC")) { return; }