mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
fix PHP 8.0 error: key(): Argument #1 ($array) must be of type array, null given
This commit is contained in:
parent
90b3b47dc9
commit
f6b7dc1474
@ -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