From d94bdb24a6b46c072a483396adbb86f0534a81f3 Mon Sep 17 00:00:00 2001 From: ralf Date: Mon, 18 Jul 2022 14:10:12 +0200 Subject: [PATCH] fix empty account-data (caused by wrong expression) breaking mail accounts when storing --- admin/inc/class.admin_mail.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/inc/class.admin_mail.inc.php b/admin/inc/class.admin_mail.inc.php index 5762e8a76c..a0504fd033 100644 --- a/admin/inc/class.admin_mail.inc.php +++ b/admin/inc/class.admin_mail.inc.php @@ -880,8 +880,8 @@ class admin_mail elseif ($content['acc_id'] > 0) { try { - $account = Mail\Account::read($content['acc_id'], $this->is_admin && !empty($content['called_for']) ?: - $GLOBALS['egw_info']['user']['account_id']); + $account = Mail\Account::read($content['acc_id'], $this->is_admin && !empty($content['called_for']) ? + $content['called_for'] : $GLOBALS['egw_info']['user']['account_id']); $account->getUserData(); // quota, aliases, forwards etc. $content += $account->params; $content['acc_sieve_enabled'] = (string)($content['acc_sieve_enabled']);