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:
dc54986
)
Lasttakenby = 0 is a valid id when auto-marked.
author
Dan Marsden
<dan@danmarsden.com>
Mon, 22 May 2017 23:53:36 +0000
(11:53 +1200)
committer
Dan Marsden
<dan@danmarsden.com>
Mon, 22 May 2017 23:53:36 +0000
(11:53 +1200)
classes/summary.php
patch
|
blob
|
history
diff --git
a/classes/summary.php
b/classes/summary.php
index
f177c88
..
bec15cf
100644
(file)
--- a/
classes/summary.php
+++ b/
classes/summary.php
@@
-235,7
+235,7
@@
class mod_attendance_summary {
{$joingroup}
WHERE ats.attendanceid = :attid
AND ats.sessdate >= :cstartdate
- AND ats.lasttaken
by
!= 0
+ AND ats.lasttaken != 0
{$where}
GROUP BY atl.studentid";
$this->userspoints = $DB->get_records_sql($sql, $params);
@@
-293,7
+293,7
@@
class mod_attendance_summary {
{$joingroup}
WHERE ats.attendanceid = :attid
AND ats.sessdate >= :cstartdate
- AND ats.lasttaken
by
!= 0
+ AND ats.lasttaken != 0
{$where}
GROUP BY atl.studentid, sts.setnumber, sts.acronym";
$this->userstakensessionsbyacronym = array();