From 16dc7fcb6fb6eaf552c6e23811f44434686eff3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sun, 28 Aug 2016 01:42:09 +0200 Subject: [PATCH] [core] fix bridges without parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- lib/Bridge.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/Bridge.php b/lib/Bridge.php index 240251c..9d16ff5 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -260,9 +260,12 @@ abstract class BridgeAbstract implements BridgeInterface { return; } - if(empty($this->parameters) && !empty($inputs)){ - $this->returnClientError('Invalid parameters value(s)'); - }; + if(empty($this->parameters)){ + if(!empty($inputs)){ + $this->returnClientError('Invalid parameters value(s)'); + } + return; + } if(!$this->validateData($inputs)){ $this->returnClientError('Invalid parameters value(s)');