Permalink
Browse files

MDL-39740 grade: Fix grade_item::add_idnumber strict type checking

  • Loading branch information...
1 parent a1bb397 commit 9a1e5b9911b65f200d046ccbd79e371a34f26090 Ashley Holman committed with danpoltawski May 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/grade/grade_item.php
View
@@ -437,7 +437,7 @@ public function add_idnumber($idnumber) {
}
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;

0 comments on commit 9a1e5b9

Please sign in to comment.