Skip to content

Commit

Permalink
Merge branch 'MDL-65993_master' of git://github.com/dmonllao/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Aug 21, 2019
2 parents 0052d1b + d1af71c commit 2b29298
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions analytics/classes/local/analyser/by_course.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,11 @@ public function get_analysables_iterator(?string $action = null) {
if (!empty($this->options['filter'])) {
$courses = array();
foreach ($this->options['filter'] as $courseid) {
$courses[$courseid] = new \stdClass();
$courses[$courseid]->id = $courseid;
$courses[$courseid] = intval($courseid);
}

list($coursesql, $courseparams) = $DB->get_in_or_equal($courses, SQL_PARAMS_NAMED);
$sql .= " AND c.id IN $coursesql";
$sql .= " AND c.id $coursesql";
$params = $params + $courseparams;
}

Expand Down

0 comments on commit 2b29298

Please sign in to comment.