diff options
author | Brion Vibber <brion@pobox.com> | 2010-06-26 10:18:03 -0400 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-06-26 10:18:03 -0400 |
commit | 00e129b01343e37dbd662b95f423e731b0867023 (patch) | |
tree | ba7e1bb3706adb6081bb61fd9499bef38213be8e /actions/showgroup.php | |
parent | dad0b06a386092b159118780a6a6801f3cf674de (diff) | |
parent | 696e4ba393c658d5b2e1fe46e1389bd7b2cfdb34 (diff) |
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 1.0.x
Diffstat (limited to 'actions/showgroup.php')
-rw-r--r-- | actions/showgroup.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/actions/showgroup.php b/actions/showgroup.php index 3d369e9eb..17c37e4d7 100644 --- a/actions/showgroup.php +++ b/actions/showgroup.php @@ -430,14 +430,6 @@ class ShowgroupAction extends GroupDesignAction function showStatistics() { - // XXX: WORM cache this - $members = $this->group->getMembers(); - $members_count = 0; - /** $member->count() doesn't work. */ - while ($members->fetch()) { - $members_count++; - } - $this->elementStart('div', array('id' => 'entity_statistics', 'class' => 'section')); @@ -451,7 +443,7 @@ class ShowgroupAction extends GroupDesignAction $this->elementStart('dl', 'entity_members'); $this->element('dt', null, _('Members')); - $this->element('dd', null, (is_int($members_count)) ? $members_count : '0'); + $this->element('dd', null, $this->group->getMemberCount()); $this->elementEnd('dl'); $this->elementEnd('div'); |