Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-43373 core_enrol: Display enrolments dimmed if outside of start o…

…r end times
  • Loading branch information...
commit 87f2d79a0822ff38edfcefdceb7dfd5d9daa29f6 1 parent 5ca04a7
@tonyjbutler tonyjbutler authored danpoltawski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  enrol/locallib.php
View
2  enrol/locallib.php
@@ -1011,7 +1011,7 @@ public function get_users_for_display(course_enrolment_manager $manager, $sort,
continue;
} else if ($ue->timestart and $ue->timeend) {
$period = get_string('periodstartend', 'enrol', array('start'=>userdate($ue->timestart), 'end'=>userdate($ue->timeend)));
- $periodoutside = ($ue->timestart && $ue->timeend && $now < $ue->timestart && $now > $ue->timeend);
+ $periodoutside = ($ue->timestart && $ue->timeend && ($now < $ue->timestart || $now > $ue->timeend));
} else if ($ue->timestart) {
$period = get_string('periodstart', 'enrol', userdate($ue->timestart));
$periodoutside = ($ue->timestart && $now < $ue->timestart);
Please sign in to comment.
Something went wrong with that request. Please try again.