Skip to content

Commit ab68167

Browse files
committed
Issues-281: missing where condition
1 parent 6e65e0a commit ab68167

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vanilla/applications/vanilla/models/class.discussionmodel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,9 @@ public function get($offset = '0', $limit = '', $wheres = '', $additionalFields
507507
unset($wheres['Announce']);
508508
}
509509

510+
if (is_array($wheres)) {
511+
$this->SQL->where($wheres);
512+
}
510513

511514
foreach ($orderBy as $orderField => $direction) {
512515
$this->SQL->orderBy($this->addFieldPrefix($orderField), $direction);

0 commit comments

Comments
 (0)