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

Commit

Permalink
Merge pull request #34 from sergoslav/master
Browse files Browse the repository at this point in the history
Fixed problem with 0 as needle in in_array()
  • Loading branch information
Pat Patterson committed Jul 10, 2014
2 parents 364cb9a + 0786d12 commit 234c913
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 234c913

Please sign in to comment.