MDL-11282, MDL-11643 - removing notice() from grade_update() - we can not stop execution there!

This commit is contained in:
skodak
2008-02-05 23:10:27 +00:00
parent 9c76f3b45e
commit 58da996994
+1 -2
View File
@@ -131,8 +131,7 @@ function grade_update($source, $courseid, $itemtype, $itemmodule, $iteminstance,
} else {
if ($grade_item->is_locked()) {
$message = get_string('gradeitemislocked', 'grades', $grade_item->itemname);
notice($message);
// no notice() here, test returned value instead!
return GRADE_UPDATE_ITEM_LOCKED;
}