Fixes for various bugs (e.g.: 'secret file could not be read', SQL error and more)
[mailer.git] / inc / libs / maintenance_functions.php
index 2d427c38d2291158ad58bf084388a1bb358d88ec..e9110d9abba7673dacc9e3087e63a795b4b12fa0 100644 (file)
@@ -61,7 +61,7 @@ function isMaintenanceEnabled () {
        // Is the cache entry set
        if (!isset($GLOBALS[__FUNCTION__])) {
                // No, so determine it
-               $GLOBALS[__FUNCTION__] = (getMaintenance() == 'Y');
+               $GLOBALS[__FUNCTION__] = ((isConfigEntrySet('maintenance')) && (getMaintenance() == 'Y'));
        } // END - if
 
        // Return cache