diff --git a/api/src/Asyncservice.php b/api/src/Asyncservice.php index 6d23b77a3d..922dd6e0f5 100644 --- a/api/src/Asyncservice.php +++ b/api/src/Asyncservice.php @@ -446,7 +446,7 @@ class Asyncservice if (($GLOBALS['egw']->session->account_id = $job['account_id'])) { - $GLOBALS['egw']->session->account_lid = $GLOBALS['egw']->accounts->id2name($job['account_id']); + $GLOBALS['egw']->session->account_lid = Accounts::id2name($job['account_id']); $GLOBALS['egw']->session->account_domain = $domain; $GLOBALS['egw_info']['user'] = $GLOBALS['egw']->session->read_repositories();