Skip to content

Commit

Permalink
[GithubIssueBridge] Fix non existing comments count
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
  • Loading branch information
Pierre Mazière authored and logmanoriginal committed Nov 29, 2018
1 parent d7cabfc commit d5085a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridges/GithubIssueBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function collectData(){
ENT_QUOTES,
'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['uri'] = self::URI
. $issue->find('.js-navigation-open', 0)->getAttribute('href');
Expand Down

0 comments on commit d5085a4

Please sign in to comment.