Skip to content

Commit

Permalink
closes #1650 for magento 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Mar 23, 2023
1 parent d380baf commit c294228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -957,15 +957,15 @@ public function loadStores()
}

foreach ($apiStores['stores'] as $store) {
if ($store['platform']!=self::PLATFORM||array_key_exists($store['list_id'],$allStores)) {
if ($store['platform']!=self::PLATFORM||in_array($store['id'],$allStores)) {
continue;
}
if (isset($store['connected_site'])) {
$name = $store['name'];
} else {
$name = $store['name'].' (Warning: not connected)';
}
$allStores['list_id'] = $store['list_id'];
$allStores[] = $store['id'];
$mstore = $this->_mailChimpStoresFactory->create();
$mstore->setApikey($this->_encryptor->encrypt(trim($apiKey)));
$mstore->setStoreid($store['id']);
Expand Down

0 comments on commit c294228

Please sign in to comment.