From: Evan Prodromou Date: Wed, 1 Jul 2009 18:45:48 +0000 (-0400) Subject: correctly return count of notices X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=90557e9147a154e84a6d46ee1d63efceaf9ff12b;p=quix0rs-gnu-social.git correctly return count of notices --- diff --git a/actions/conversation.php b/actions/conversation.php index e0fb08fa76..cd6f263294 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; } /**