]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correctly return count of notices
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 1 Jul 2009 18:45:48 +0000 (14:45 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 1 Jul 2009 18:45:48 +0000 (14:45 -0400)
actions/conversation.php

index e0fb08fa764cd408d382b0e26465376841b63a54..cd6f263294270466328f28f283675f38c2432016 100644 (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;
     }
 
     /**