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:
@@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user