From 4eea7f55ef9cfb856516f1667b88abfce277878b Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Fri, 6 Nov 2009 13:32:04 +0100 Subject: [PATCH] Check if it is empty instead of '' --- lib/profilelist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/profilelist.php b/lib/profilelist.php index 697713f8fd..bbb722701b 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -191,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');