fixing the fix ;)

This commit is contained in:
ralf 2023-06-08 22:14:41 +02:00
parent 2ed1513e7b
commit 4716ce1459

View File

@ -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)