Vfs Dialog: Fix "count(): Argument #1 ($value) must be of type Countable|array, null given" from favourites

This commit is contained in:
nathan 2024-02-27 08:49:11 -07:00
parent 00bf97eaeb
commit 2c664f7f78

View File

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