Skip to content

Commit 492fe1e

Browse files
authored
Update ProductHelper for NS POV
1 parent 625e62a commit 492fe1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helper/Entity/ProductHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ public function setSettings($indexName, $indexNameTmp, $storeId, $saveToTmpIndic
469469
// Merge current replicas with sorting replicas to not delete A/B testing replica indices
470470
try {
471471
$currentSettings = $this->algoliaHelper->getSettings($indexName);
472-
if (array_key_exists('replicas', $currentSettings)) {
472+
if (is_array($currentSettings) && array_key_exists('replicas', $currentSettings)) {
473473
$replicas = array_values(array_unique(array_merge($replicas, $currentSettings['replicas'])));
474474
}
475475
} catch (AlgoliaException $e) {

0 commit comments

Comments
 (0)