Skip to content

Commit 749ee55

Browse files
committed
Replace count() with !empty()
1 parent e2c42e6 commit 749ee55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Category/DataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ protected function getFieldsMap()
687687
}
688688
}
689689

690-
if (count($fields)) {
690+
if (!empty($fields)) {
691691
$fieldsMap[$group] = $fields;
692692
}
693693
}

0 commit comments

Comments
 (0)