[GithubIssueBridge] Fix non existing comments count

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2018-11-11 01:36:41 +01:00 committed by logmanoriginal
parent d7cabfca54
commit d5085a4116

View file

@ -192,7 +192,7 @@ class GithubIssueBridge extends BridgeAbstract {
ENT_QUOTES, ENT_QUOTES,
'UTF-8' 'UTF-8'
); );
$comments = $issue->find('.col-5', 0)->plaintext; $comments = trim($issue->find('.col-5', 0)->plaintext);
$item['content'] .= "\n" . 'Comments: ' . ($comments ? $comments : '0'); $item['content'] .= "\n" . 'Comments: ' . ($comments ? $comments : '0');
$item['uri'] = self::URI $item['uri'] = self::URI
. $issue->find('.js-navigation-open', 0)->getAttribute('href'); . $issue->find('.js-navigation-open', 0)->getAttribute('href');