mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 01:18:42 +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)
|
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).')';
|
return $account.' ('.Api\Accounts::username($id).')';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user