diff --git a/soapclient/SforceBaseClient.php b/soapclient/SforceBaseClient.php index 4a59196..a08525a 100644 --- a/soapclient/SforceBaseClient.php +++ b/soapclient/SforceBaseClient.php @@ -322,8 +322,9 @@ private function setHeaders($call=NULL) { } } - - $this->sforce->__setSoapHeaders($header_array); + if (!empty(array_filter($header_array))) { + $this->sforce->__setSoapHeaders($header_array); + } } public function setAssignmentRuleHeader($header) {