From b20c51e5cf18e01a692442b155d87753c541dbde Mon Sep 17 00:00:00 2001 From: s-renier-taonix-fr Date: Mon, 13 Feb 2023 10:43:20 +0800 Subject: [PATCH] Fix : Missing 'return' statement --- src/nusoap.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/nusoap.php b/src/nusoap.php index fc141a1..9726945 100755 --- a/src/nusoap.php +++ b/src/nusoap.php @@ -3025,6 +3025,7 @@ function sendRequest($data, $cookies = null) $this->debug('set cURL payload'); return true; } + return false; } /** @@ -5342,6 +5343,7 @@ function getBindingData($binding) if (is_array($this->bindings[$binding])) { return $this->bindings[$binding]; } + return false; } /** @@ -5415,6 +5417,7 @@ function getOperationData($operation, $bindingType = 'soap') } } } + return array (); } /** @@ -5444,6 +5447,7 @@ function getOperationDataForSoapAction($soapAction, $bindingType = 'soap') } } } + return array (); } /** @@ -7844,7 +7848,7 @@ function loadWSDL() * get available data pertaining to an operation * * @param string $operation operation name - * @return array array of data pertaining to the operation + * @return array|false array of data pertaining to the operation, false on error or no data * @access public */ function getOperationData($operation) @@ -7859,6 +7863,7 @@ function getOperationData($operation) return $this->operations[$operation]; } $this->debug("No data for operation: $operation"); + return false; } /**