mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fix PHP 8.0 error: key(): Argument #1 ($array) must be of type array, null given
This commit is contained in:
parent
b953eecf40
commit
c56dd9fb4e
@ -1193,7 +1193,7 @@ class filemanager_ui
|
||||
//_debug_array($content);
|
||||
$path =& $content['path'];
|
||||
|
||||
$button = @key($content['button']);
|
||||
$button = @key($content['button'] ?? []);
|
||||
unset($content['button']);
|
||||
if(!$button && $content['sudo'] && $content['sudouser'])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user