From 608801a6c11f02a20da13dcdd3de678e21f9a439 Mon Sep 17 00:00:00 2001 From: Cristian Pontes Date: Mon, 14 Aug 2017 10:52:15 +0100 Subject: [PATCH] compatibility fix php 5.3 --- Transport/XmlDataTransportDecorator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Transport/XmlDataTransportDecorator.php b/Transport/XmlDataTransportDecorator.php index caef284..611b24f 100644 --- a/Transport/XmlDataTransportDecorator.php +++ b/Transport/XmlDataTransportDecorator.php @@ -392,8 +392,8 @@ private function parseResponseConvertLead($xml) private function parseUpdateRelatedRecords($xml) { $result = (array) $xml->result; - $added = isset($result['added-ids']) ? eval('return ' . $result['added-ids'] . ';') : []; - $updated = isset($result['updated-ids']) ? eval('return ' . $result['updated-ids'] . ';') : []; + $added = isset($result['added-ids']) ? eval('return ' . $result['added-ids'] . ';') : array(); + $updated = isset($result['updated-ids']) ? eval('return ' . $result['updated-ids'] . ';') : array(); $data = array( 'added-ids' => $added, 'updated-ids' => $updated