Small bug (SQL Warning) in attendance restore

Small bug (SQL Warning) in attendance restore

by Richard Webb -
Number of replies: 0
With warning notices turned on, I get the following warning notice for each attendance record during restore of a course:

Notice: Undefined index: 1949 in /Library/WebServer/Documents/moodle/mod/attforblock/restorelib.php on line 159
Column 'attsid' cannot be null

INSERT INTO mdl_attendance_log ( ATTSID, STUDENTID, STATUS, REMARKS ) VALUES ( null, 2111, 'P', '' )

It's just a warning and everything appears to work properly, but I figured I should report it in case it has ramifications elsewhere or just an easy fix.

Richard
Average of ratings: -