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