mirror of
https://github.com/getgrav/grav.git
synced 2026-03-04 03:21:33 +01:00
Flex: Fixed a bug in new findPrefixedKeysFromFilesystem() method
This commit is contained in:
@@ -398,7 +398,11 @@ class FolderStorage extends AbstractFilesystemStorage
|
||||
$list[] = $this->findKeysFromFilesystem($filename);
|
||||
}
|
||||
|
||||
return array_merge(...$list);
|
||||
if (!$list) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return \count($list) > 1 ? array_merge(...$list) : $list[0];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user