From b1992e65cf81d3ff41e64a55e4403e6f7e22cfbf Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 26 Apr 2003 13:49:13 +0000 Subject: [PATCH] Trying an experiment on moodle.org --- course/lib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/course/lib.php b/course/lib.php index 6162116e19..017aca4e00 100644 --- a/course/lib.php +++ b/course/lib.php @@ -317,8 +317,10 @@ function print_recent_activity($course) { } $timestart = $USER->lastlogin; - if (time() - $timestart > COURSE_MAX_RECENT_PERIOD) { - $timestart = time() - COURSE_MAX_RECENT_PERIOD; + $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")) { -- 2.39.5