Skip to content

Commit

Permalink
Fixed passing null is deprecated for explode in Mage_Catalog_Model_Re…
Browse files Browse the repository at this point in the history
…source_Product_Indexer_Eav_Source (OpenMage#3297)
  • Loading branch information
kyrena authored Jun 7, 2023
1 parent 3a6eaa3 commit 2f606b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ protected function _prepareMultiselectIndex($entityIds = null, $attributeId = nu
$data = [];
$query = $select->query();
while ($row = $query->fetch()) {
$values = array_unique(explode(',', $row['value']));
$values = empty($row['value']) ? [] : array_unique(explode(',', $row['value']));
foreach ($values as $valueId) {
if (isset($options[$row['attribute_id']][$valueId])) {
$data[] = [
Expand Down

0 comments on commit 2f606b9

Please sign in to comment.