correctly return count of notices
This commit is contained in:
@@ -140,9 +140,7 @@ class ConversationTree extends NoticeList
|
|||||||
|
|
||||||
function show()
|
function show()
|
||||||
{
|
{
|
||||||
$cnt = 0;
|
$cnt = $this->_buildTree();
|
||||||
|
|
||||||
$this->_buildTree();
|
|
||||||
|
|
||||||
$this->out->elementStart('div', array('id' =>'notices_primary'));
|
$this->out->elementStart('div', array('id' =>'notices_primary'));
|
||||||
$this->out->element('h2', null, _('Notices'));
|
$this->out->element('h2', null, _('Notices'));
|
||||||
@@ -181,6 +179,8 @@ class ConversationTree extends NoticeList
|
|||||||
$this->tree[$notice->reply_to] = array($notice->id);
|
$this->tree[$notice->reply_to] = array($notice->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $cnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user