mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:18 +01:00
fix PHP 8.x Fatal changing languages
This commit is contained in:
parent
f40d854592
commit
53fe8a730e
@ -44,7 +44,7 @@ class admin_messages
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$button = @key($content['button']);
|
$button = key($content['button'] ?? []);
|
||||||
|
|
||||||
if ($button)
|
if ($button)
|
||||||
{
|
{
|
||||||
@ -59,7 +59,7 @@ class admin_messages
|
|||||||
}
|
}
|
||||||
Framework::message(lang('message has been updated'));
|
Framework::message(lang('message has been updated'));
|
||||||
if ($button == 'apply') break;
|
if ($button == 'apply') break;
|
||||||
//fall through
|
//fall through
|
||||||
default:
|
default:
|
||||||
Egw::redirect_link('/index.php', array(
|
Egw::redirect_link('/index.php', array(
|
||||||
'menuaction' => 'admin.admin_ui.index',
|
'menuaction' => 'admin.admin_ui.index',
|
||||||
@ -106,4 +106,4 @@ class admin_messages
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user