mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 22:51:43 +01:00
Do not add the stat DOM if the stat is not available
This commit is contained in:
parent
534edde475
commit
e87655394d
@ -638,8 +638,8 @@ abstract class Framework extends Framework\Extra
|
|||||||
|
|
||||||
return '<span title="'.Accounts::format_username().'" class="avatar"><img src="'.Egw::link('/api/avatar.php', array(
|
return '<span title="'.Accounts::format_username().'" class="avatar"><img src="'.Egw::link('/api/avatar.php', array(
|
||||||
'account_id' => $GLOBALS['egw_info']['user']['account_id'],
|
'account_id' => $GLOBALS['egw_info']['user']['account_id'],
|
||||||
)).'"/>'.
|
)).'"/>'.(!empty($stat) ?
|
||||||
'<span class="'.$stat['class'].'"/>'.$stat['body'].'</span>';
|
'<span class="'.$stat['class'].'">'.$stat['body'].'</span>' : '').'</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user