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 59c6470 commit e0a92c0Copy full SHA for e0a92c0
includes/classes/AmazonCore.php
@@ -734,10 +734,7 @@ protected function sleep(){
734
* @return boolean <b>FALSE</b> if no XML data
735
*/
736
protected function checkToken($xml){
737
- if (!$xml){
738
- return false;
739
- }
740
- if ($xml->NextToken && (string)$xml->HasNext != 'false' && (string)$xml->MoreResultsAvailable != 'false'){
+ if ($xml && $xml->NextToken && (string)$xml->HasNext != 'false' && (string)$xml->MoreResultsAvailable != 'false'){
741
$this->tokenFlag = true;
742
$this->options['NextToken'] = (string)$xml->NextToken;
743
} else {
0 commit comments