From 1e0fe05bef4a935c23d290ebda67059679da629f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 13 Jun 2011 23:15:15 +0200 Subject: [PATCH] fix error with empty config file --- lib/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5