Skip to content

Commit f2be48c

Browse files
authored
Merge pull request CPIGroup#125 from StyxOfDynamite/stable
added conditional check for index existence before trying to reference it
2 parents d01a7fd + e146a10 commit f2be48c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/classes/AmazonCore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ protected function sendRequest($url,$param){
611611
$this->log("Making request to Amazon: ".$this->options['Action']);
612612
$response = $this->fetchURL($url,$param);
613613

614-
while ($response['code'] == '503' && $this->throttleStop==false){
614+
while (isset($response['code']) && $response['code'] == '503' && $this->throttleStop==false){
615615
$this->sleep();
616616
$response = $this->fetchURL($url,$param);
617617
}

0 commit comments

Comments
 (0)