Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Fixed problem with 0 as needle in in_array()
Browse files Browse the repository at this point in the history
  • Loading branch information
sergoslav committed Jul 9, 2014
1 parent 364cb9a commit 0786d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soapclient/SforceBaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0786d12

Please sign in to comment.