1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-11 11:04:36 +02:00

bridges: Return default values for getName and getURI

This commit is contained in:
logmanoriginal
2016-12-17 17:03:09 +01:00
parent d4fb02b0d0
commit f694023f7d
4 changed files with 20 additions and 10 deletions

View File

@@ -115,10 +115,14 @@ class GBAtempBridge extends BridgeAbstract {
}
public function getName() {
$type=array_search(
$this->getInput('type'),
self::PARAMETERS[$this->queriedContext]['type']['values']
);
return 'GBAtemp '.$type.' Bridge';
if(!is_null($this->getInput('type'))){
$type=array_search(
$this->getInput('type'),
self::PARAMETERS[$this->queriedContext]['type']['values']
);
return 'GBAtemp '.$type.' Bridge';
}
return parent::getName();
}
}