mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 08:37:30 +02:00
[bridges] Fix conditional checks on getInput
isset($this->getInput('')) does not work
This commit is contained in:
@@ -16,12 +16,12 @@ class Rule34Bridge extends BridgeAbstract{
|
||||
|
||||
public function collectData(){
|
||||
$page = 0;$tags='';
|
||||
if (isset($this->getInput('p'))) {
|
||||
if ($this->getInput('p')) {
|
||||
$page = (int)preg_replace("/[^0-9]/",'', $this->getInput('p'));
|
||||
$page = $page - 1;
|
||||
$page = $page * 50;
|
||||
}
|
||||
if (isset($this->getInput('t'))) {
|
||||
if ($this->getInput('t')) {
|
||||
$tags = urlencode($this->getInput('t'));
|
||||
}
|
||||
$html = $this->getSimpleHTMLDOM("http://rule34.xxx/index.php?page=post&s=list&tags=$tags&pid=$page") or $this->returnServerError('Could not request Rule34.');
|
||||
|
Reference in New Issue
Block a user