diff --git a/lib/config.php b/lib/config.php
index 6af9fcbe5ada3ddf34e3aafa03f70ee93871aa6e..60c6739a3fe6abc7d7efbeb49cd565daffc37beb 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;
 		}