From d6bc2a810413a05a58f0f44a6787ae6104298cc3 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 5 Feb 2008 23:11:02 +0000 Subject: [PATCH] MDL-11282, MDL-11643 - removing notice() from grade_update() - we can not stop execution there!; merged from MOODLE_19_STABLE --- lib/gradelib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.39.5