diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-07-01 14:45:48 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-07-01 14:45:48 -0400 |
commit | 90557e9147a154e84a6d46ee1d63efceaf9ff12b (patch) | |
tree | 62d514c86f3ee21ac886e5fde5d2198a3a0151f9 /actions/conversation.php | |
parent | 0057f3da81f074be30f7e005e5b79b58a7c3acc7 (diff) |
correctly return count of notices
Diffstat (limited to 'actions/conversation.php')
-rw-r--r-- | actions/conversation.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/conversation.php b/actions/conversation.php index e0fb08fa7..cd6f26329 100644 --- a/actions/conversation.php +++ b/actions/conversation.php @@ -140,9 +140,7 @@ class ConversationTree extends NoticeList function show() { - $cnt = 0; - - $this->_buildTree(); + $cnt = $this->_buildTree(); $this->out->elementStart('div', array('id' =>'notices_primary')); $this->out->element('h2', null, _('Notices')); @@ -181,6 +179,8 @@ class ConversationTree extends NoticeList $this->tree[$notice->reply_to] = array($notice->id); } } + + return $cnt; } /** |