1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-16 06:26:24 +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

@ -29,11 +29,11 @@ class GithubIssueBridge extends BridgeAbstract{
);
public function collectData(){
$uri = 'https://github.com/'.$this->getInput('u').'/'.$this->getInput('p').'/issues/'.(isset($this->getInput('i'))?$this->getInput('i'):'');
$uri = 'https://github.com/'.$this->getInput('u').'/'.$this->getInput('p').'/issues/'.($this->getInput('i')?$this->getInput('i'):'');
$html = $this->getSimpleHTMLDOM($uri)
or $this->returnServerError('No results for Github Issue '.$this->getInput('i').' in project '.$this->getInput('u').'/'.$this->getInput('p'));
if(isset($this->getInput('i'))){
if($this->getInput('i')){
foreach($html->find('.js-comment-container') as $comment){
$item = array();