1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 16:46:30 +02:00

[bridges] Fix conditional checks on getInput

isset($this->getInput('')) does not work
This commit is contained in:
logmanoriginal
2016-08-28 20:38:01 +02:00
parent 8ed3b02899
commit 4f7fbae861
32 changed files with 68 additions and 68 deletions

View File

@@ -22,7 +22,7 @@ class PinterestBridge extends BridgeAbstract{
public function collectData(){
$html = '';
if (isset($this->getInput('u')) || isset($this->getInput('b'))) {
if ($this->getInput('u') || $this->getInput('b')) {
if (empty($this->getInput('u')))
{
@@ -38,7 +38,7 @@ class PinterestBridge extends BridgeAbstract{
$this->board = $this->getInput('b');
$html = $this->getSimpleHTMLDOM($this->getURI().'/'.urlencode($this->username).'/'.urlencode($this->board)) or $this->returnServerError('Username and/or board not found');
} else if (isset($this->getInput('q')))
} else if ($this->getInput('q'))
{
$this->query = $this->getInput('q');
$html = $this->getSimpleHTMLDOM($this->getURI().'/search/?q='.urlencode($this->query)) or $this->returnServerError('Could not request Pinterest.');