Skip to content

Commit

Permalink
Fixed to display a number of posts
Browse files Browse the repository at this point in the history
  • Loading branch information
kotaro0717 committed Mar 11, 2015
1 parent 0989a92 commit f82f4aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Controller/BbsesAppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,11 @@ public function setCommentNum($lft, $rght) {
$conditions
)) {
$this->set('commentNum', 0);

} else {
$this->set('commentNum', count($comments));

}
$this->set('commentNum', count($comments));
}

/**
Expand Down

0 comments on commit f82f4aa

Please sign in to comment.