Browse Source

Fix #427 - correct some bad sql.

nwp90-nwp90-allsessionsreport
Dan Marsden 5 years ago
parent
commit
2b32888ff9
  1. 2
      locallib.php

2
locallib.php

@ -458,7 +458,7 @@ function attendance_can_student_mark($sess, $log = true) {
$record = $DB->get_record_select('attendance_log', $sql, $params); $record = $DB->get_record_select('attendance_log', $sql, $params);
} else { } else {
// Assume ATTENDANCE_SHAREDIP_FORCED. // Assume ATTENDANCE_SHAREDIP_FORCED.
$sql = 'sessionid = ? AND studentid <> ? ipaddress = ?'; $sql = 'sessionid = ? AND studentid <> ? AND ipaddress = ?';
$params = array($sess->id, $USER->id, getremoteaddr()); $params = array($sess->id, $USER->id, getremoteaddr());
$record = $DB->get_record_select('attendance_log', $sql, $params); $record = $DB->get_record_select('attendance_log', $sql, $params);
} }

Loading…
Cancel
Save