Skip to content

Commit

Permalink
Update articles.php (#20245)
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ authored and Michael Babker committed Apr 30, 2018
1 parent 960e1ef commit e99b38d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/com_content/models/articles.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,11 @@ protected function getListQuery()
}
elseif (is_array($authorId))
{
$authorId = ArrayHelper::toInteger($authorId);
$authorId = implode(',', $authorId);
$authorId = array_filter($authorId, 'is_numeric');

if ($authorId)
{
$authorId = implode(',', $authorId);
$type = $this->getState('filter.author_id.include', true) ? 'IN' : 'NOT IN';
$authorWhere = 'a.created_by ' . $type . ' (' . $authorId . ')';
}
Expand Down

0 comments on commit e99b38d

Please sign in to comment.