Permalink
Browse files

MDL-34243 completion: get_criteria() incorrectly passing object

  • Loading branch information...
1 parent 2cbdaa7 commit 9710fe73d1796039de7a49ed9e97deaf04985dca @srynot4sale srynot4sale committed Jul 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 9710fe7

Please sign in to comment.