1
0
Fork 0
forked from blallo/rss-bridge

[Bridge] Use member variable instead of local variable

This commit is contained in:
logmanoriginal 2016-09-02 18:59:55 +02:00
parent c2e411ba82
commit 48db1693a1

View file

@ -321,15 +321,13 @@ abstract class BridgeAbstract implements BridgeInterface {
$this->setInputs($inputs);
// Guess the paramter context from input data
$queriedContext=$this->getQueriedContext();
if(is_null($queriedContext)){
$this->queriedContext = $this->getQueriedContext();
if(is_null($this->queriedContext)){
$this->returnClientError('Required parameter(s) missing');
}else if($queriedContext===false){
} elseif($this->queriedContext === false){
$this->returnClientError('Mixed context parameters');
}
$this->queriedContext=$queriedContext;
// Apply default values to missing data
$contexts=array($this->queriedContext);
if(array_key_exists('global',static::PARAMETERS)){
@ -383,7 +381,7 @@ abstract class BridgeAbstract implements BridgeInterface {
}else{
continue;
}
$this->inputs[$queriedContext][$name]['value']=$value;
$this->inputs[$this->queriedContext][$name]['value']=$value;
}
}