Skip to content

Commit

Permalink
MDL-34243 completion: get_criteria() incorrectly passing object
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Barnes authored and Sam Hemelryk committed Jul 22, 2012
1 parent 9592f5d commit a6fa8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/completion/completion_criteria_completion.php
Expand Up @@ -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;
Expand Down

0 comments on commit a6fa8a7

Please sign in to comment.