correctly return count of notices

This commit is contained in:
Evan Prodromou 2009-07-01 14:45:48 -04:00
parent 0057f3da81
commit 90557e9147
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
/**