Permalink
Browse files

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

…r end times
  • Loading branch information...
tonyjbutler authored and danpoltawski committed Dec 13, 2013
1 parent 5ca04a7 commit 87f2d79a0822ff38edfcefdceb7dfd5d9daa29f6
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/locallib.php
View
@@ -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);

0 comments on commit 87f2d79

Please sign in to comment.