This commit is contained in:
Paula V. Quispe
2015-12-11 12:40:55 -04:00
parent 98e9397229
commit 84444cc00a
3 changed files with 16 additions and 8 deletions

View File

@@ -54,8 +54,10 @@ class Common
$files = glob("$path/$singlePattern", $flags);
$dirs = glob("$path/*", GLOB_MARK|GLOB_ONLYDIR|GLOB_NOSORT);
foreach ($dirs as $dir) {
$files = array_merge($files, self::rglob("$dir/$singlePattern", $flags));
if(is_array($dirs)){
foreach ($dirs as $dir) {
$files = array_merge($files, self::rglob("$dir/$singlePattern", $flags));
}
}
if ($onlyFiles) {