Permalink
Browse files

MDL-41637 badges: Update modules ids retrieval

  • Loading branch information...
ybozhko committed Sep 8, 2013
1 parent 6acbecf commit e3fc376a8642003dc052822549300734576ce1c8
Showing with 1 addition and 1 deletion.
  1. +1 −1 badges/criteria/award_criteria_activity.php
@@ -120,7 +120,7 @@ public function get_options(&$mform) {
$course = $DB->get_record('course', array('id' => $this->courseid));
$info = new completion_info($course);
$mods = $info->get_activities();
- $mids = array_map(create_function('$o', 'return $o->id;'), $mods);
+ $mids = array_keys($mods);
if ($this->id !== 0) {
$existing = array_keys($this->params);

0 comments on commit e3fc376

Please sign in to comment.