Skip to content
Browse files

Merge branch 'MDL-36601-MOODLE_22_STABLE' of git://git.luns.net.uk/mo…

…odle into MOODLE_22_STABLE
  • Loading branch information...
2 parents 6575ae5 + acfcf34 commit 79b123d1bef6e58b0020dfd9caf07c291ecc7a34 @samhemelryk samhemelryk committed
Showing with 7 additions and 4 deletions.
  1. +7 −4 report/log/locallib.php
View
11 report/log/locallib.php
@@ -245,7 +245,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;
@@ -259,7 +262,7 @@ function report_log_print_mnet_selector_form($hostid, $course, $selecteduser=0,
$numdates++;
}
- if ($selecteddate == "today") {
+ if ($selecteddate === "today") {
$selecteddate = $today;
}
@@ -319,7 +322,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'));
@@ -563,4 +566,4 @@ function report_log_print_selector_form($course, $selecteduser=0, $selecteddate=
echo '<input type="submit" value="'.get_string('gettheselogs').'" />';
echo '</div>';
echo '</form>';
-}
+}

0 comments on commit 79b123d

Please sign in to comment.
Something went wrong with that request. Please try again.