We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b80ebb commit 9a6ad60Copy full SHA for 9a6ad60
app/code/Magento/Elasticsearch/Model/Indexer/IndexerHandler.php
@@ -145,7 +145,7 @@ private function updateCacheContext(array $docs) : void
145
{
146
$categoryIds = [];
147
foreach ($docs as $document) {
148
- if (is_array($document['category_ids'])) {
+ if (!empty($document['category_ids']) && is_array($document['category_ids'])) {
149
foreach ($document['category_ids'] as $id) {
150
$categoryIds[] = $id;
151
}
0 commit comments