From: moodler Date: Mon, 25 Aug 2003 00:56:38 +0000 (+0000) Subject: Slight fix for displaying logs for courses starting in the future X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3695f5b487f4e00b5de1cec05210b6b8c648ed24;p=moodle.git Slight fix for displaying logs for courses starting in the future --- 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; }