mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
OC_Config: handle failure of glob('*.config.php')
This commit is contained in:
parent
63c83ff50b
commit
c1cf829b9d
1 changed files with 3 additions and 0 deletions
|
|
@ -132,6 +132,9 @@ class OC_Config{
|
|||
|
||||
// read all file in config dir ending by config.php
|
||||
$config_files = glob( OC::$SERVERROOT."/config/*.config.php");
|
||||
if (!is_array($config_files)) {
|
||||
$config_files = array();
|
||||
}
|
||||
|
||||
//Filter only regular files
|
||||
$config_files = array_filter($config_files, 'is_file');
|
||||
|
|
|
|||
Loading…
Reference in a new issue