From 3903fa21f777526992048b088b758e8b5c1607d8 Mon Sep 17 00:00:00 2001 From: Ashley Holman Date: Mon, 20 May 2013 12:15:29 +0930 Subject: [PATCH] MDL-39740 grade: Fix grade_item::add_idnumber strict type checking --- lib/grade/grade_item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/grade/grade_item.php b/lib/grade/grade_item.php index 8d66765b1c3..d57d0616e18 100644 --- a/lib/grade/grade_item.php +++ b/lib/grade/grade_item.php @@ -437,7 +437,7 @@ class grade_item extends grade_object { } if ($this->itemtype == 'mod' and !$this->is_outcome_item()) { - if ($this->itemnumber === 0) { + if ($this->itemnumber == 0) { // for activity modules, itemnumber 0 is synced with the course_modules if (!$cm = get_coursemodule_from_instance($this->itemmodule, $this->iteminstance, $this->courseid)) { return false; -- 2.43.0