diff --git a/preferences/inc/class.preferences_password.inc.php b/preferences/inc/class.preferences_password.inc.php index b9ecaf2458..7e8d0c00dd 100644 --- a/preferences/inc/class.preferences_password.inc.php +++ b/preferences/inc/class.preferences_password.inc.php @@ -89,7 +89,7 @@ class preferences_password break; case 'two_factor_auth': - switch(key($content['2fa']['action'])) + switch(key($content['2fa']['action'] ?? [])) { case 'show': $content['2fa'] = $this->generateQRCode($google2fa, false);