From b11e957c89ef4e36f14769a78e4a5087c18319d2 Mon Sep 17 00:00:00 2001 From: Himanshu Date: Thu, 11 Mar 2021 00:40:12 +0530 Subject: [PATCH] [4.0] Click Saving error of two-factor alternate of profile in PHP 8 (#32540) Co-authored-by: Richard Fath --- administrator/components/com_users/src/Model/UserModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_users/src/Model/UserModel.php b/administrator/components/com_users/src/Model/UserModel.php index 24e0e21d704b6..1343df93fba0a 100644 --- a/administrator/components/com_users/src/Model/UserModel.php +++ b/administrator/components/com_users/src/Model/UserModel.php @@ -257,7 +257,7 @@ public function save($data) } // Handle the two factor authentication setup - if (array_key_exists('twofactor', $data)) + if (isset($data['twofactor']['method'])) { $twoFactorMethod = $data['twofactor']['method'];