fix error with empty config file

This commit is contained in:
Robin Appelman 2011-06-13 23:15:15 +02:00
parent 80194daec7
commit 1e0fe05bef

View 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;
}