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 . ')'; }