Skip to content

Commit 6677a49

Browse files
authored
Added check for empty array
1 parent 4b1b1dc commit 6677a49

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/CatalogInventory/Model/Indexer/ProductPriceIndexFilter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ public function modifyPrice(IndexTableStructure $priceTable, array $entityIds =
104104
$select->where('stock_item.use_config_manage_stock = 0 AND stock_item.manage_stock = 1');
105105
}
106106

107-
$select->where('stock_item.product_id in (?)', $entityIds);
107+
if (!empty($entityIds)) {
108+
$select->where('stock_item.product_id in (?)', $entityIds);
109+
}
108110

109111
$select->group('stock_item.product_id');
110112
$select->having('max_is_in_stock = 0');

0 commit comments

Comments
 (0)