mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
fix PHP 8.0 error setting up two factor auth
key() expects array, null given
This commit is contained in:
parent
75b168fb0d
commit
e6b08cce70
@ -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