forked from extern/egroupware
fix PHP 8.0 TypeError: EGroupware\Api\Accounts::username(): Argument #1 ($account_id) must be of type ?int, string given
This commit is contained in:
parent
382c39e817
commit
be7fbf35fa
@ -1257,7 +1257,7 @@ abstract class admin_cmd
|
||||
*/
|
||||
static function display_account($account)
|
||||
{
|
||||
$id = is_numeric($account) ? $account : $GLOBALS['egw']->accounts->id2name($account);
|
||||
$id = is_numeric($account) ? $account : Api\Accounts::getInstance()->name2id($account);
|
||||
|
||||
return $account.' ('.Api\Accounts::username($id).')';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user