]> git.mjollnir.org Git - moodle.git/commitdiff
Trying an experiment on moodle.org
authormoodler <moodler>
Sat, 26 Apr 2003 13:49:13 +0000 (13:49 +0000)
committermoodler <moodler>
Sat, 26 Apr 2003 13:49:13 +0000 (13:49 +0000)
course/lib.php

index 6162116e19dd14205988ca7bb050bd36eafa13dc..017aca4e009bd368e22e7edc13995e8b11ad89d6 100644 (file)
@@ -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 "<p>Logs start from: ".userdate($timestart)."</p>";
     }
 
     if (! $logs = get_records_select("log", "time > '$timestart' AND course = '$course->id'", "time ASC")) {