From d543bebe3b4eea91c5b4c5f0797654583914cbbe Mon Sep 17 00:00:00 2001 From: SharkyKZ Date: Fri, 27 Apr 2018 11:01:31 +0000 Subject: [PATCH] Update articles.php --- components/com_content/models/articles.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/com_content/models/articles.php b/components/com_content/models/articles.php index 6be0ecfce88e0..a3afe075ea1cd 100644 --- a/components/com_content/models/articles.php +++ b/components/com_content/models/articles.php @@ -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 . ')'; }