Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

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