Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-34243 completion: get_criteria() incorrectly passing object

  • Loading branch information...
commit 4ed5856a0867f7a179c267d4398dbd0c98c7d173 1 parent 947ba9c
@srynot4sale srynot4sale authored samhemelryk committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/completion/completion_criteria_completion.php
View
2  lib/completion/completion_criteria_completion.php
@@ -153,7 +153,7 @@ public function get_criteria() {
$record = $DB->get_record('course_completion_criteria', $params);
- $this->attach_criteria(completion_criteria::factory($record));
+ $this->attach_criteria(completion_criteria::factory((array) $record));
}
return $this->_criteria;

0 comments on commit 4ed5856

Please sign in to comment.
Something went wrong with that request. Please try again.