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; }