diff --git a/locallib.php b/locallib.php index a645366..803ea54 100644 --- a/locallib.php +++ b/locallib.php @@ -1128,7 +1128,7 @@ class attendance { $where = "ats.attendanceid = :aid AND ats.sessdate >= :csdate"; } - $sql = "SELECT ats.id, ats.sessdate, ats.groupid, al.statusid + $sql = "SELECT ats.id, ats.sessdate, ats.groupid, al.statusid, al.remarks FROM {attendance_sessions} ats JOIN {attendance_log} al ON ats.id = al.sessionid AND al.studentid = :uid @@ -1494,4 +1494,4 @@ function attforblock_upgrade() { rebuild_course_cache($attendance->course, true); } $attendances->close(); -} \ No newline at end of file +}