Check if it is empty instead of ''
This commit is contained in:
parent
6f2aa1394b
commit
4eea7f55ef
|
@ -191,7 +191,7 @@ class ProfileListItem extends Widget
|
||||||
'alt' =>
|
'alt' =>
|
||||||
($this->profile->fullname) ? $this->profile->fullname :
|
($this->profile->fullname) ? $this->profile->fullname :
|
||||||
$this->profile->nickname));
|
$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->elementStart('span', $hasFN);
|
||||||
$this->out->raw($this->highlight($this->profile->nickname));
|
$this->out->raw($this->highlight($this->profile->nickname));
|
||||||
$this->out->elementEnd('span');
|
$this->out->elementEnd('span');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user