fix PHP 8.0 error reading identity "new", when trying to create a new identity

This commit is contained in:
Ralf Becker 2021-10-11 15:10:27 +02:00
parent f29a2b5ea8
commit 4495bb56c4

View File

@ -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']);