From fba4761adb6a857ac48ffa6babd1906a9c6f6e80 Mon Sep 17 00:00:00 2001 From: Rafael White Date: Wed, 8 Jan 2020 13:41:10 -0400 Subject: [PATCH] Revert changes --- src/Zoho/CRM/Request/Response.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Zoho/CRM/Request/Response.php b/src/Zoho/CRM/Request/Response.php index 499fc0f..bb6c84d 100755 --- a/src/Zoho/CRM/Request/Response.php +++ b/src/Zoho/CRM/Request/Response.php @@ -216,8 +216,7 @@ protected function parseResponseGetRecords() */ protected function parseResponsePostRecords() { - $responseData = current($this->responseData); - $data = current($responseData['data']); + $data = current($this->responseData['data']); $this->status = $data['status']; $this->recordId = array_key_exists('id', $data['details']) ? $data['details']['id'] : null; }