diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php index bbb5e16aa9..7412c6242e 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -1019,9 +1019,9 @@ class filemanager_ui if($query['col_filter']['path'] && $vfs_options['name']) { // Query the requested path, in case it's nested - if(!is_array($query['col_filter']['dir'])) + if(!is_array($query['col_filter']['path'])) { - $query['col_filter']['dir'] = $query['col_filter']['dir'] ? [$query['col_filter']['dir']] : []; + $query['col_filter']['path'] = $query['col_filter']['path'] ? [$query['col_filter']['path']] : []; } $query['col_filter']['path'][] = $query['path']; foreach($query['col_filter']['path'] as $filter_path)