Skip to content

Commit

Permalink
closes mailchimp#351
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Jul 17, 2018
1 parent 076b574 commit 2bd3c2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Controller/Adminhtml/Errors/Getresponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public function execute()
do {
$counter++;
$files = $this->_result->getBatchResponse($batchId, $errors->getStoreId());
if($files===false) {
$fileContent = "Response was deleted from MailChimp servers";
break;
}
foreach ($files as $file) {
$items = json_decode(file_get_contents($file));
foreach ($items as $item) {
Expand Down

0 comments on commit 2bd3c2e

Please sign in to comment.