Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit fd0d236dce9c1d4ae31d517fc12b298b17c5d16d 1 parent c5466e9
@ashleyholman ashleyholman authored danpoltawski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/grade/grade_item.php
View
2  lib/grade/grade_item.php
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.