|
@ -763,7 +763,7 @@ function attendance_get_users_to_notify($courseids = array(), $orderby = '', $si |
|
|
GROUP BY attendanceid, setnumber) stm |
|
|
GROUP BY attendanceid, setnumber) stm |
|
|
ON (stm.setnumber = ats.statusset AND stm.attendanceid = ats.attendanceid) |
|
|
ON (stm.setnumber = ats.statusset AND stm.attendanceid = ats.attendanceid) |
|
|
{$joingroup} |
|
|
{$joingroup} |
|
|
WHERE ats.sessdate >= {$sincetime} {$where} |
|
|
WHERE (ats.sessdate + ats.duration) >= {$sincetime} {$where} |
|
|
AND ats.lasttaken != 0 |
|
|
AND ats.lasttaken != 0 |
|
|
GROUP BY uniqueid, a.id, a.name, a.course, c.fullname, atl.studentid, n.id, n.warningpercent, |
|
|
GROUP BY uniqueid, a.id, a.name, a.course, c.fullname, atl.studentid, n.id, n.warningpercent, |
|
|
n.emailsubject, n.emailcontent, n.emailcontentformat, n.warnafter, |
|
|
n.emailsubject, n.emailcontent, n.emailcontentformat, n.warnafter, |
|
|