Merge pull request #206 from lekoala/patch-1

fix undefined index notice
This commit is contained in:
Robbie Averill 2020-11-23 09:24:42 -08:00 committed by GitHub
commit 3be003218c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -346,7 +346,7 @@ class HTTPBulkToolsResponse extends HTTPResponse
$body['records']['failed'] = $this->failedRecords;
}
if (count($body['records']['success']) === 0) {
if (isset($body['records']['success']) && count($body['records']['success']) === 0) {
$body['isWarning'] = true;
}