Skip to content

Commit 2289825

Browse files
committed
Fixed: objects using param instead of set store
1 parent 82e1c42 commit 2289825

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

includes/classes/AmazonOrderList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public function __construct($s = null, $mock = false, $m = null, $config = null)
5353
throw new Exception('Config file does not exist!');
5454
}
5555

56-
if(isset($store[$s]) && array_key_exists('marketplaceId', $store[$s])){
57-
$this->options['MarketplaceId.Id.1'] = $store[$s]['marketplaceId'];
56+
if(isset($store[$this->storeName]) && array_key_exists('marketplaceId', $store[$this->storeName])){
57+
$this->options['MarketplaceId.Id.1'] = $store[$this->storeName]['marketplaceId'];
5858
} else {
5959
$this->log("Marketplace ID is missing",'Urgent');
6060
}

includes/classes/AmazonProductsCore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public function __construct($s = null, $mock = false, $m = null, $config = null)
5555
}
5656

5757

58-
if(isset($store[$s]) && array_key_exists('marketplaceId', $store[$s])){
59-
$this->options['MarketplaceId'] = $store[$s]['marketplaceId'];
58+
if(isset($store[$this->storeName]) && array_key_exists('marketplaceId', $store[$this->storeName])){
59+
$this->options['MarketplaceId'] = $store[$this->storeName]['marketplaceId'];
6060
} else {
6161
$this->log("Marketplace ID is missing",'Urgent');
6262
}

0 commit comments

Comments
 (0)