Moodle 2.9.1, Attendance module 2015040500.
Running with debug messages enabled, logged in as a teacher, I view a student's attendance report for all courses [mod/attendance/view.php?studentid=26&id=148&mode=1]
The report is displayed OK, but the following messages are shown:
Notice: Undefined offset: 26 in /var/www/html/moodle/mod/attendance/renderer.php on line 701
Notice: Undefined offset: 26 in /var/www/html/moodle/mod/attendance/renderer.php on line 701
Notice: Undefined offset: 26 in /var/www/html/moodle/mod/attendance/renderer.php on line 702
Notice: Undefined offset: 26 in /var/www/html/moodle/mod/attendance/renderer.php on line 702
Notice: Undefined offset: 26 in /var/www/html/moodle/mod/attendance/renderer.php on line 703
Warning: Invalid argument supplied for foreach() in /var/www/html/moodle/mod/attendance/renderhelpers.php on line 228
This student is enrolled in 2 courses, one of which has the attendance activity, but no sessions defined. The other one has ~30 sessions and attendance was marked for 3 of them.