mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Filemanager: Fix "[] operator not supported for strings"
caused by e7e9c6f
This commit is contained in:
parent
6c17f6c43d
commit
9b46880528
@ -1020,6 +1020,10 @@ class filemanager_ui
|
|||||||
{
|
{
|
||||||
// Query the requested path, in case it's nested
|
// Query the requested path, in case it's nested
|
||||||
$query['col_filter']['path'][] = $query['path'];
|
$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']] : [];
|
||||||
|
}
|
||||||
foreach($query['col_filter']['path'] as $filter_path)
|
foreach($query['col_filter']['path'] as $filter_path)
|
||||||
{
|
{
|
||||||
$query['col_filter']['dir'][] = Vfs::is_dir($filter_path) ? $filter_path : Vfs::dirname($filter_path);
|
$query['col_filter']['dir'][] = Vfs::is_dir($filter_path) ? $filter_path : Vfs::dirname($filter_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user