From 0786d12d573b3c36ebc5b42464764872512a3243 Mon Sep 17 00:00:00 2001 From: Sergey Petrov Date: Thu, 10 Jul 2014 00:01:21 +0400 Subject: [PATCH] Fixed problem with 0 as needle in in_array() --- soapclient/SforceBaseClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soapclient/SforceBaseClient.php b/soapclient/SforceBaseClient.php index e00f4fd..3b494c7 100644 --- a/soapclient/SforceBaseClient.php +++ b/soapclient/SforceBaseClient.php @@ -1003,7 +1003,7 @@ public function __construct($response=NULL) { } foreach ($response as $responseKey => $responseValue) { - if (in_array($responseKey, array('Id', 'type', 'any'))) { + if (in_array(strval($responseKey), array('Id', 'type', 'any'))) { continue; } $this->$responseKey = $responseValue;