From: skodak Date: Tue, 5 Feb 2008 23:11:02 +0000 (+0000) Subject: MDL-11282, MDL-11643 - removing notice() from grade_update() - we can not stop execut... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d6bc2a810413a05a58f0f44a6787ae6104298cc3;p=moodle.git MDL-11282, MDL-11643 - removing notice() from grade_update() - we can not stop execution there!; merged from MOODLE_19_STABLE --- diff --git a/lib/gradelib.php b/lib/gradelib.php index 57eb5f009a..53a3a31f0e 100644 --- a/lib/gradelib.php +++ b/lib/gradelib.php @@ -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; }