[core] fix bridges without parameters

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-28 01:42:09 +02:00
parent fa7cd4a739
commit 16dc7fcb6f

View file

@ -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)');