I am receiving an error in the attendance mod and am unsure how to fix it. I'm running Moodle version 2.6.2 and mod_attendance build 2014022801. This is the information in my error log:
PHP Notice: Undefined variable: sess in /home/xxxx/public_html/mod/attendance/renderer.php on line 819
PHP Notice: Trying to get property of non-object in /home/xxxx/public_html/mod/attendance/renderer.php on line 819
The code on that section is the following:
if ($reportdata->sessionslog) {
if (isset($reportdata->sessionslog[$user->id][$sess->id]->remarks)) {
$row->cells[] = $reportdata->sessionslog[$user->id][$sess->id]->remarks;
} else {
$row->cells[] = '';
}
}
If anyone could help me out with this, that would be fantastic.