Merge pull request #12 from apeschar/folder-array-values

Use array_values to avoid named parameters error in Folder.php
This commit is contained in:
Kamil Wylegala 2022-01-31 19:08:29 +01:00 committed by GitHub
commit 527ace3951
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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