djplaner/moodle-mod_bim

Undefined property - Manage Marking

Closed this issue · 1 comments

A coordinator using manage marking generating warnings

Notice: Undefined property: stdClass::$Submitted in /Applications/XAMPP/xamppfiles/htdocs/fred/mod/bim/lib/locallib.php on line 435

Problem using += with a stdClass object where the variable hasn't been defined. Added
if ( !isset( $total->$status)) { $total->$status = 0; }