1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-27 10:04:53 +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

@@ -83,7 +83,7 @@ class MangareaderBridge extends BridgeAbstract{
$path = "latest";
$limit = MANGAREADER_LIMIT;
if(isset($this->getInput('category'))){ // Get popular updates
if($this->getInput('category')){ // Get popular updates
$type = "popular";
$path = "popular";
if($this->getInput('category') !== "all"){
@@ -91,12 +91,12 @@ class MangareaderBridge extends BridgeAbstract{
}
}
if(isset($this->getInput('path'))){ // Get manga updates
if($this->getInput('path')){ // Get manga updates
$type = "path";
$path = $this->getInput('path');
}
if(isset($this->getInput('limit')) && $this->getInput('limit') !== ""){ // Get manga updates (optional parameter)
if($this->getInput('limit') && $this->getInput('limit') !== ""){ // Get manga updates (optional parameter)
$limit = $this->getInput('limit');
}