Commit bb87134c authored by Hugh Davenport's avatar Hugh Davenport Committed by Gerrit Code Review
Browse files

Merge "Fix active topics query with multiple forum ids (bug #1014924)"

parents e11c93e1 da5ce4bd
......@@ -598,8 +598,8 @@ EOF;
}
if (!empty($forumids)) {
$where .= ' AND f.id IN (?)';
$values[] = implode(',', $forumids);
$where .= ' AND f.id IN (' . join(',', array_fill(0, count($forumids), '?')) . ')';
$values = array_merge($values, $forumids);
}
$result = array(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment