Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/config.php')
-rw-r--r--lib/config.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/config.php b/lib/config.php
index 2660f43cad7..6af9fcbe5ad 100644
--- a/lib/config.php
+++ b/lib/config.php
@@ -139,7 +139,9 @@ class OC_CONFIG{
// Include the file, save the data from $CONFIG
include( "$SERVERROOT/config/config.php" );
- self::$cache = $CONFIG;
+ if( isset( $CONFIG ) || is_array( $CONFIG )){
+ self::$cache = $CONFIG;
+ }
// We cached everything
self::$init = true;