From 667ab3252b316b44e1dfe45c2471242cb6b93eae Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 26 Apr 2003 14:12:12 +0000 Subject: [PATCH] Get less logs from the database --- course/lib.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } -- 2.39.5