From 142bafb5ef8d75520c95f0847abd5b4e7cd13b86 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Tue, 23 May 2017 11:53:36 +1200 Subject: [PATCH] Lasttakenby = 0 is a valid id when auto-marked. --- classes/summary.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/summary.php b/classes/summary.php index f177c88..bec15cf 100644 --- 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.lasttakenby != 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.lasttakenby != 0 + AND ats.lasttaken != 0 {$where} GROUP BY atl.studentid, sts.setnumber, sts.acronym"; $this->userstakensessionsbyacronym = array();