mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +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;
|
break;
|
||||||
|
|
||||||
case 'two_factor_auth':
|
case 'two_factor_auth':
|
||||||
switch(key($content['2fa']['action']))
|
switch(key($content['2fa']['action'] ?? []))
|
||||||
{
|
{
|
||||||
case 'show':
|
case 'show':
|
||||||
$content['2fa'] = $this->generateQRCode($google2fa, false);
|
$content['2fa'] = $this->generateQRCode($google2fa, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user