mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +01:00
fix PHP 8.0 error setting up two factor auth
key() expects array, null given
This commit is contained in:
parent
90e5d1b289
commit
a396e14582
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user