Skip to content

Commit

Permalink
Merge pull request #206 from lekoala/patch-1
Browse files Browse the repository at this point in the history
fix undefined index notice
  • Loading branch information
robbieaverill authored Nov 23, 2020
2 parents 7de4f77 + b00987b commit 3be0032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BulkTools/HTTPBulkToolsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ public function createBody()
$body['records']['failed'] = $this->failedRecords;
}

if (count($body['records']['success']) === 0) {
if (isset($body['records']['success']) && count($body['records']['success']) === 0) {
$body['isWarning'] = true;
}

Expand Down

0 comments on commit 3be0032

Please sign in to comment.