projects
/
moodle-mod_attendance.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7403438
)
Check if there is a manual enrolment with no expiry date
author
Barry Oosthuizen
<barry.oosthuizen@nottingham.ac.uk>
Tue, 31 Mar 2015 10:35:19 +0000
(11:35 +0100)
committer
Dan Marsden
<dan@danmarsden.com>
Wed, 1 Apr 2015 01:16:40 +0000
(14:16 +1300)
locallib.php
patch
|
blob
|
history
diff --git
a/locallib.php
b/locallib.php
index
c0bef5c
..
3e2e29c
100644
(file)
--- a/
locallib.php
+++ b/
locallib.php
@@
-1047,7
+1047,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
';
// CONTRIB-3549
$sql = "SELECT ue.userid, ue.status,