From 922c827662fdfbcc265332171443a0de23603451 Mon Sep 17 00:00:00 2001 From: M <12033826+maksudr@users.noreply.github.com> Date: Wed, 17 Jul 2019 02:55:40 +0100 Subject: [PATCH] Add rotateqrcode to class structure --- classes/structure.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/structure.php b/classes/structure.php index 3a93c77..b1a3bc7 100644 --- a/classes/structure.php +++ b/classes/structure.php @@ -1106,7 +1106,7 @@ class mod_attendance_structure { if ($this->get_group_mode()) { $sql = "SELECT $id, ats.id, ats.groupid, ats.sessdate, ats.duration, ats.description, al.statusid, al.remarks, ats.studentscanmark, ats.autoassignstatus, - ats.preventsharedip, ats.preventsharediptime + ats.preventsharedip, ats.preventsharediptime, ats.rotateqrcode FROM {attendance_sessions} ats RIGHT JOIN {attendance_log} al ON ats.id = al.sessionid AND al.studentid = :uid @@ -1116,7 +1116,7 @@ class mod_attendance_structure { } else { $sql = "SELECT $id, ats.id, ats.groupid, ats.sessdate, ats.duration, ats.description, ats.statusset, al.statusid, al.remarks, ats.studentscanmark, ats.autoassignstatus, - ats.preventsharedip, ats.preventsharediptime + ats.preventsharedip, ats.preventsharediptime, ats.rotateqrcode FROM {attendance_sessions} ats RIGHT JOIN {attendance_log} al ON ats.id = al.sessionid AND al.studentid = :uid @@ -1147,7 +1147,7 @@ class mod_attendance_structure { } $sql = "SELECT $id, ats.id, ats.groupid, ats.sessdate, ats.duration, ats.description, ats.statusset, al.statusid, al.remarks, ats.studentscanmark, ats.autoassignstatus, - ats.preventsharedip, ats.preventsharediptime + ats.preventsharedip, ats.preventsharediptime, ats.rotateqrcode FROM {attendance_sessions} ats LEFT JOIN {attendance_log} al ON ats.id = al.sessionid AND al.studentid = :uid