mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-16 07:28:15 +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
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue