SS5 Fix: Replace json2array with json_decode

This commit is contained in:
James Cocker 2023-06-01 10:56:18 +01:00 committed by GitHub
parent 7c6c209a17
commit 3006076c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class BulkUploadHandler extends RequestHandler
if ($uploadResponse->getStatusCode() == 200)
{
$responseData = Convert::json2array($uploadResponse->getBody());
$responseData = json_decode($uploadResponse->getBody(), true);
$responseData = array_shift($responseData);
$record = $this->createDataObject($responseData['id']);