mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
[bridges] Fix conditional checks on getInput
isset($this->getInput('')) does not work
This commit is contained in:
parent
8ed3b02899
commit
4f7fbae861
32 changed files with 68 additions and 68 deletions
|
@ -16,10 +16,10 @@ class KonachanBridge extends BridgeAbstract{
|
|||
|
||||
public function collectData(){
|
||||
$page = 1;$tags='';
|
||||
if (isset($this->getInput('p'))) {
|
||||
if ($this->getInput('p')) {
|
||||
$page = (int)preg_replace("/[^0-9]/",'', $this->getInput('p'));
|
||||
}
|
||||
if (isset($this->getInput('t'))) {
|
||||
if ($this->getInput('t')) {
|
||||
$tags = urlencode($this->getInput('t'));
|
||||
}
|
||||
$html = $this->getSimpleHTMLDOM("http://konachan.com/post?page=$page&tags=$tags") or $this->returnServerError('Could not request Konachan.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue