소스 검색

[GithubIssueBridge] fix comments number

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
Pierre Mazière 8 년 전
부모
커밋
c051730f7c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bridges/GithubIssueBridge.php

+ 1 - 1
bridges/GithubIssueBridge.php

@@ -57,7 +57,7 @@ class GithubIssueBridge extends BridgeAbstract{
         $item['title']=$issue->find('.js-navigation-open',0)->plaintext;
         $comments=$issue->firstChild()->firstChild()
           ->nextSibling()->nextSibling()->nextSibling()->plaintext;
-        $item['content']='Comments: '.$comments;
+        $item['content']='Comments: '.($comments?$comments:'0');
         $item['uri']='https://github.com'.$issue->find('.js-navigation-open',0)->getAttribute('href');
         $this->items[]=$item;
       }