]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Check if it is empty instead of ''
authorSarven Capadisli <csarven@status.net>
Fri, 6 Nov 2009 12:32:04 +0000 (13:32 +0100)
committerSarven Capadisli <csarven@status.net>
Fri, 6 Nov 2009 12:32:04 +0000 (13:32 +0100)
lib/profilelist.php

index 697713f8fdb1fd9f5a78885edc8504d6ddda2873..bbb722701b2557e5b2d0fb8f6ef72a187d4a804f 100644 (file)
@@ -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');