summaryrefslogtreecommitdiff
path: root/lib/profilelist.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-07 12:22:20 -0500
committerEvan Prodromou <evan@status.net>2009-11-07 12:22:20 -0500
commitaf5b2fff12d12b0e79edfbe7d5c28ec7fef196f3 (patch)
tree13d0d92d99cc678cd0a0ad1488ab0ea16a633ca5 /lib/profilelist.php
parent1319002e1519fafb0e82fbfd2d2723abdb3112e7 (diff)
parentb522c401e66e5b5d7e000c1bf25fd4b4a4d0558f (diff)
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib/profilelist.php')
-rw-r--r--lib/profilelist.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/profilelist.php b/lib/profilelist.php
index 5f536e0f4..bbb722701 100644
--- a/lib/profilelist.php
+++ b/lib/profilelist.php
@@ -182,7 +182,8 @@ class ProfileListItem extends Widget
{
$avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
$this->out->elementStart('a', array('href' => $this->profile->profileurl,
- 'class' => 'url'));
+ 'class' => 'url',
+ 'rel' => 'contact'));
$this->out->element('img', array('src' => ($avatar) ? $avatar->displayUrl() : Avatar::defaultImage(AVATAR_STREAM_SIZE),
'class' => 'photo avatar',
'width' => AVATAR_STREAM_SIZE,
@@ -190,7 +191,7 @@ class ProfileListItem extends Widget
'alt' =>
($this->profile->fullname) ? $this->profile->fullname :
$this->profile->nickname));
- $hasFN = ($this->profile->fullname !== '') ? 'nickname' : 'fn nickname';
+ $hasFN = (!empty($this->profile->fullname)) ? 'nickname' : 'fn nickname';
$this->out->elementStart('span', $hasFN);
$this->out->raw($this->highlight($this->profile->nickname));
$this->out->elementEnd('span');