Skip to content
Snippets Groups Projects
Commit f8dae11a authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #3957 from owncloud/config-glob-fail

OC_Config: handle failure of glob('*.config.php')
parents 87063918 c1cf829b
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment