]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix error with empty config file
authorRobin Appelman <icewind1991@gmail.com>
Mon, 13 Jun 2011 21:15:15 +0000 (23:15 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Mon, 13 Jun 2011 23:20:41 +0000 (01:20 +0200)
lib/config.php

index 6af9fcbe5ada3ddf34e3aafa03f70ee93871aa6e..60c6739a3fe6abc7d7efbeb49cd565daffc37beb 100644 (file)
@@ -139,7 +139,7 @@ class OC_CONFIG{
 
                // Include the file, save the data from $CONFIG
                include( "$SERVERROOT/config/config.php" );
-               if( isset( $CONFIG ) || is_array( $CONFIG )){
+               if( isset( $CONFIG ) && is_array( $CONFIG )){
                        self::$cache = $CONFIG;
                }