Permalink
Browse files

MDL-34243 completion: get_criteria() incorrectly passing object

  • Loading branch information...
1 parent 9592f5d commit a6fa8a7265d96c3d161575f5793856eeb10dda01 @srynot4sale srynot4sale committed with Sam Hemelryk Jul 10, 2012
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 a6fa8a7

Please sign in to comment.