diff --git a/administrator/components/com_content/models/articles.php b/administrator/components/com_content/models/articles.php index 0d28a2ae90d5c..f4bcc649fb63e 100644 --- a/administrator/components/com_content/models/articles.php +++ b/administrator/components/com_content/models/articles.php @@ -275,7 +275,7 @@ protected function getListQuery() : $categoryId; // Case: Using both categories filter and by level filter - if (count($categoryId)) + if (is_array($categoryId) && count($categoryId)) { $categoryId = ArrayHelper::toInteger($categoryId); $categoryTable = JTable::getInstance('Category', 'JTable');