- in lib/gradelib.php
- replace this:
debugging('Incorrect grade array index, must be user id! Grade ignored.');
- with this:
// debugging('Incorrect grade array index, must be user id! Grade ignored.');
- replace this:
- in backup/restorelib.php
- replace this:
$olditeminstance = backup_todb($info['GRADE_ITEM']['#']['ITEMINSTANCE']['0']['#'], false);
$mod = backup_getid($restore->backup_unique_code,$dbrec->itemmodule, $olditeminstance); - with this:
if (! $olditeminstance = backup_todb($info['GRADE_ITEM']['#']['ITEMINSTANCE']['0']['#'], false)) {
continue; // item not backed up
}
if (! $mod = backup_getid($restore->backup_unique_code,$dbrec->itemmodule, $olditeminstance)) {
continue; // mod not restored
}
- replace this:
If I had more time I would report it on the Moodle Tracker ...