Browse Source

Lasttakenby = 0 is a valid id when auto-marked.

MOODLE_33_STABLE
Dan Marsden 8 years ago
parent
commit
2b95e51c05
  1. 4
      classes/summary.php

4
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();

Loading…
Cancel
Save