Check if it is empty instead of ''

This commit is contained in:
Sarven Capadisli 2009-11-06 13:32:04 +01:00
parent 6f2aa1394b
commit 4eea7f55ef
1 changed files with 1 additions and 1 deletions

View 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');