Permalink
Browse files

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

…r end times
  • Loading branch information...
1 parent 28abbab commit c56a930df802512ce0e653c6acac481601206f1f @tonyjbutler tonyjbutler committed with danpoltawski Dec 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/locallib.php
View
@@ -1058,7 +1058,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 c56a930

Please sign in to comment.