Browse Source

Merge pull request #179 from NeillM/MOODLE_27_STABLE

Expired enrolments can prevent student self-attendance
MOODLE_27_STABLE
Dan Marsden 9 years ago
parent
commit
97c8b52f32
  1. 2
      locallib.php

2
locallib.php

@ -1071,7 +1071,7 @@ class attendance {
// CONTRIB-4868
$mintime = 'MIN(CASE WHEN (ue.timestart > :zerotime) THEN ue.timestart ELSE ue.timecreated END)';
$maxtime = 'MAX(ue.timeend)';
$maxtime = 'CASE WHEN MIN(ue.timeend) = 0 THEN 0 ELSE MAX(ue.timeend) END';
$sql = "SELECT ue.userid, ue.status,
$mintime AS mintime,

Loading…
Cancel
Save