From ac4090b0688258e54d53bfc88c2885cfd0aab838 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 8 Jun 2023 13:58:46 -0600 Subject: [PATCH] Filemanager: Fix "[] operator not supported for strings" again --- 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 e6432d7e7a..bbb5e16aa9 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -1019,11 +1019,11 @@ class filemanager_ui if($query['col_filter']['path'] && $vfs_options['name']) { // Query the requested path, in case it's nested - $query['col_filter']['path'][] = $query['path']; if(!is_array($query['col_filter']['dir'])) { $query['col_filter']['dir'] = $query['col_filter']['dir'] ? [$query['col_filter']['dir']] : []; } + $query['col_filter']['path'][] = $query['path']; foreach($query['col_filter']['path'] as $filter_path) { $query['col_filter']['dir'][] = Vfs::is_dir($filter_path) ? $filter_path : Vfs::dirname($filter_path);