From: Robin Appelman Date: Mon, 13 Jun 2011 21:15:15 +0000 (+0200) Subject: fix error with empty config file X-Git-Tag: v3.0~267^2~532 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1e0fe05bef4a935c23d290ebda67059679da629f;p=nextcloud-server.git fix error with empty config file --- diff --git a/lib/config.php b/lib/config.php index 6af9fcbe5ad..60c6739a3fe 100644 --- a/lib/config.php +++ b/lib/config.php @@ -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; }