From f6b7dc1474dc681322a6611b0461dc8bf63e82e8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 27 Sep 2021 17:28:41 +0200 Subject: [PATCH] fix PHP 8.0 error: key(): Argument #1 ($array) must be of type array, null given --- filemanager/inc/class.filemanager_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php index 9e55df5cea..3d124a7f2a 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -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']) {