From 4495bb56c47967f3aa1187d71b18409da9847704 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 11 Oct 2021 15:10:27 +0200 Subject: [PATCH] fix PHP 8.0 error reading identity "new", when trying to create a new identity --- admin/inc/class.admin_mail.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/inc/class.admin_mail.inc.php b/admin/inc/class.admin_mail.inc.php index f8539e40f5..338d659cf1 100644 --- a/admin/inc/class.admin_mail.inc.php +++ b/admin/inc/class.admin_mail.inc.php @@ -1258,7 +1258,7 @@ class admin_mail if ($content['ident_id'] != $content['old_ident_id'] && ($content['old_ident_id'] || $content['ident_id'] != $content['std_ident_id'])) { - if ($content['ident_id'] > 0) + if ((int)$content['ident_id'] > 0) { $identity = Mail\Account::read_identity($content['ident_id'], false, $content['called_for']); unset($identity['account_id']);