mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +01:00
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
0505539e04
commit
5dc17cfbc7
@ -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