mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Vfs Dialog: Fix "count(): Argument #1 ($value) must be of type Countable|array, null given" from favourites
This commit is contained in:
parent
00bf97eaeb
commit
2c664f7f78
@ -643,7 +643,7 @@ class Vfs extends File
|
||||
$files = [];
|
||||
}
|
||||
}
|
||||
$response['total'] = $content['total'] ?? count($response['files']);
|
||||
$response['total'] = $content['total'] ?? count($files);
|
||||
foreach($files as $path)
|
||||
{
|
||||
if(is_string($path) && $path == $content['path'] || is_array($path) && $path['path'] == $content['path'])
|
||||
|
Loading…
Reference in New Issue
Block a user