From ee9dcecff33bd9ee99ae7af328e997363f194dcd Mon Sep 17 00:00:00 2001 From: Michal Bolka Date: Wed, 30 Aug 2017 16:25:15 +0200 Subject: [PATCH] Adding header validation for null sessionId --- soapclient/SforceBaseClient.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) {