Browse files

Tiny fix so that when today is specified, it's selected in the list

  • Loading branch information...
1 parent d2d6171 commit 9604ccb1318b14b0473851918cd1aff21eb79207 martin committed Jun 11, 2002
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/lib.php
View
2 course/lib.php
@@ -38,7 +38,7 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate="today"
$timenow = time(); // GMT
// What day is it now for the user, and when is midnight that day (in GMT).
- $timemidnight = usergetmidnight($timenow);
+ $timemidnight = $today = usergetmidnight($timenow);
// Put today up the top of the list
$dates = array("$timemidnight" => "Today, ".userdate($timenow, "j F Y") );

0 comments on commit 9604ccb

Please sign in to comment.