summaryrefslogtreecommitdiff
path: root/lib/profileminilist.php
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2009-02-01 22:24:54 +0100
committerAdrian Lang <mail@adrianlang.de>2009-02-01 22:24:54 +0100
commit2f37539967efa3e30873d836b308a64fdc48078a (patch)
tree43dbdf5f314bb132763596160616c3e1fdb7f1cb /lib/profileminilist.php
parent37a769205387c0f9c41f60a675e963678d9a966f (diff)
Fixes #1088: Show number of group members. Unlike the bugreport requested, the stats are displayed similar to userstream stats in a section in the sidebar. Additionaly, I removed a redundant notnull if check in ShowgroupAction->showMembers, fixed a SQL error in User_group->getMembers when no limit is passed, removed return value storing of void function and added an usage of Profile->getBestName.
Diffstat (limited to 'lib/profileminilist.php')
-rw-r--r--lib/profileminilist.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/profileminilist.php b/lib/profileminilist.php
index 56b768419..81cd7aed5 100644
--- a/lib/profileminilist.php
+++ b/lib/profileminilist.php
@@ -69,9 +69,7 @@ class ProfileMiniList extends ProfileList
function showProfile()
{
$this->out->elementStart('li', 'vcard');
- $this->out->elementStart('a', array('title' => ($this->profile->fullname) ?
- $this->profile->fullname :
- $this->profile->nickname,
+ $this->out->elementStart('a', array('title' => $this->profile->getBestName(),
'href' => $this->profile->profileurl,
'rel' => 'contact member',
'class' => 'url'));