Permalink
Browse files

Merge branch 'MDL-36601-master' of git://git.luns.net.uk/moodle into …

…MOODLE_24_STABLE
  • Loading branch information...
2 parents c6bd165 + b84a842 commit 52d4168038b29ce17b965f7bd6ea3b66bb17bdad Sam Hemelryk committed Dec 10, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 report/log/locallib.php
View
9 report/log/locallib.php
@@ -280,7 +280,10 @@ function report_log_print_mnet_selector_form($hostid, $course, $selecteduser=0,
$timemidnight = $today = usergetmidnight($timenow);
// Put today up the top of the list
- $dates = array("$timemidnight" => get_string("today").", ".userdate($timenow, $strftimedate) );
+ $dates = array(
+ "0" => get_string('alldays'),
+ "$timemidnight" => get_string("today").", ".userdate($timenow, $strftimedate)
+ );
if (!$course->startdate or ($course->startdate > $timenow)) {
$course->startdate = $course->timecreated;
@@ -294,7 +297,7 @@ function report_log_print_mnet_selector_form($hostid, $course, $selecteduser=0,
$numdates++;
}
- if ($selecteddate == "today") {
+ if ($selecteddate === "today") {
$selecteddate = $today;
}
@@ -354,7 +357,7 @@ function report_log_print_mnet_selector_form($hostid, $course, $selecteduser=0,
}
echo html_writer::label(get_string('date'), 'menudate', false, array('class' => 'accesshide'));
- echo html_writer::select($dates, "date", $selecteddate, get_string("alldays"));
+ echo html_writer::select($dates, "date", $selecteddate, false);
echo html_writer::label(get_string('showreports'), 'menumodid', false, array('class' => 'accesshide'));
echo html_writer::select($activities, "modid", $selectedactivity, get_string("allactivities"));
echo html_writer::label(get_string('actions'), 'menumodaction', false, array('class' => 'accesshide'));

0 comments on commit 52d4168

Please sign in to comment.