Use array_values to avoid named parameters error

This commit is contained in:
Albert Peschar 2022-01-31 17:02:07 +00:00
parent 5bb14f0c60
commit d9247a0832

View file

@ -226,10 +226,10 @@ class Folder {
} }
if ($dirs) { if ($dirs) {
$dirs = call_user_func_array('array_merge', $dirs); $dirs = call_user_func_array('array_merge', array_values($dirs));
} }
if ($files) { if ($files) {
$files = call_user_func_array('array_merge', $files); $files = call_user_func_array('array_merge', array_values($files));
} }
return array($dirs, $files); return array($dirs, $files);
} }