More missing config entries added
[mailer.git] / modules.php
index 0d26db9cf0367e5f4f55f78e8f9dc4b55c09443e..2eb272b2be3a3061a5afadc62d8a01efa6f47ad3 100644 (file)
@@ -60,7 +60,9 @@ loadIncludeOnce('inc/header.php');
 
 // Modules are by default not valid!
 $isModuleValid = false; $check = 'failed';
-if ((getConfig('maintenance') == 'Y') && (!IS_ADMIN()) && (getModule() != 'admin')) {
+
+// Is the maintenance mode active or goes all well?
+if ((EXT_IS_ACTIVE('maintenance')) && (getConfig('maintenance') == 'Y') && (!IS_ADMIN()) && (getModule() != 'admin')) {
        // Maintain mode is active and you are no admin
        addFatalMessage(__FILE__, __LINE__, getMessage('LANG_DOWN_MAINTAINCE'));
 } elseif ((SQL_IS_LINK_UP()) && (getTotalFatalErrors() == 0)) {