From 3695f5b487f4e00b5de1cec05210b6b8c648ed24 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 25 Aug 2003 00:56:38 +0000 Subject: [PATCH] Slight fix for displaying logs for courses starting in the future --- course/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index d17791a224..4de5e7c162 100644 --- a/course/lib.php +++ b/course/lib.php @@ -72,7 +72,7 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate="today" // Put today up the top of the list $dates = array("$timemidnight" => get_string("today").", ".userdate($timenow, $strftimedate) ); - if (! $course->startdate) { + if (!$course->startdate or ($course->startdate > $timenow)) { $course->startdate = $course->timecreated; } -- 2.39.5