Browse Source

Merge pull request #83 from barrysspace/expired_self_enrolments_MDL26

MDL26 - Check if there is a manual enrolment with no expiry date
MOODLE_24-26_STABLE
Dan Marsden 10 years ago
parent
commit
d8586f8ec2
  1. 2
      locallib.php

2
locallib.php

@ -1031,7 +1031,7 @@ class attendance {
// CONTRIB-4868 // CONTRIB-4868
$mintime = 'MIN(CASE WHEN (ue.timestart > :zerotime) THEN ue.timestart ELSE ue.timecreated END)'; $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';
// CONTRIB-3549 // CONTRIB-3549
$sql = "SELECT ue.userid, ue.status, $sql = "SELECT ue.userid, ue.status,

Loading…
Cancel
Save