mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-13 12:04:09 +02:00
[bridges] Fix conditional checks on getInput
isset($this->getInput('')) does not work
This commit is contained in:
@@ -19,7 +19,7 @@ class GiphyBridge extends BridgeAbstract{
|
||||
public function collectData(){
|
||||
$html = '';
|
||||
$base_url = 'http://giphy.com';
|
||||
if (isset($this->getInput('s'))) { /* keyword search mode */
|
||||
if ($this->getInput('s')) { /* keyword search mode */
|
||||
$html = $this->getSimpleHTMLDOM($base_url.'/search/'.urlencode($this->getInput('s').'/')) or $this->returnServerError('No results for this query.');
|
||||
}
|
||||
else {
|
||||
@@ -27,7 +27,7 @@ class GiphyBridge extends BridgeAbstract{
|
||||
}
|
||||
|
||||
$max = GIPHY_LIMIT;
|
||||
if (isset($this->getInput('n'))) {
|
||||
if ($this->getInput('n')) {
|
||||
$max = (integer) $this->getInput('n');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user