From: Sarven Capadisli Date: Fri, 6 Nov 2009 12:32:04 +0000 (+0100) Subject: Check if it is empty instead of '' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4eea7f55ef9cfb856516f1667b88abfce277878b;p=quix0rs-gnu-social.git Check if it is empty instead of '' --- 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');