forked from blallo/rss-bridge
[core] fix bridges without parameters
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
fa7cd4a739
commit
16dc7fcb6f
1 changed files with 6 additions and 3 deletions
|
@ -260,9 +260,12 @@ abstract class BridgeAbstract implements BridgeInterface {
|
|||
return;
|
||||
}
|
||||
|
||||
if(empty($this->parameters) && !empty($inputs)){
|
||||
if(empty($this->parameters)){
|
||||
if(!empty($inputs)){
|
||||
$this->returnClientError('Invalid parameters value(s)');
|
||||
};
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if(!$this->validateData($inputs)){
|
||||
$this->returnClientError('Invalid parameters value(s)');
|
||||
|
|
Loading…
Reference in a new issue