Skip to content

Commit 26f90bc

Browse files
committed
Fixed static test failures
1 parent 2593a4e commit 26f90bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Category/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function addIdFilter($categoryIds)
155155
$condition = $categoryIds;
156156
} elseif (is_string($categoryIds)) {
157157
$ids = explode(',', $categoryIds);
158-
if (empty($ids)) {
158+
if (count($ids) == 0) {
159159
$condition = $categoryIds;
160160
} else {
161161
$condition = ['in' => $ids];

0 commit comments

Comments
 (0)