mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-08 23:08:01 +00:00
Merge pull request #6471 from nextcloud/enh/noid/get-dir-of-dots
scandir: get rid of dots
This commit is contained in:
commit
30bd415aac
1 changed files with 2 additions and 0 deletions
|
|
@ -1025,6 +1025,8 @@ class ConfigurationManager
|
|||
if ($dir === false) {
|
||||
return $cc;
|
||||
}
|
||||
// Get rid of dots from the scandir command
|
||||
$dir = array_diff($dir, array('..', '.'));
|
||||
foreach ($dir as $id) {
|
||||
$filePath = DataConst::GetCommunityContainersDirectory() . '/' . $id . '/' . $id . '.json';
|
||||
$fileContents = apcu_fetch($filePath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue