Added ability to allow empty passwords, if the user does so, a random password will...
[mailer.git] / modules.php
index 6a0ab78b379b22399fb7dd34f02ce7b377b2d8ba..fbcc2ff8bc4c10e71125b05da6d46cbff5b482ac 100644 (file)
@@ -65,7 +65,7 @@ $URL = '';
 $moduleState = 'failed';
 
 // Is the maintenance mode active or goes all well?
-if ((isExtensionActive('maintenance')) && (getConfig('maintenance') == 'Y') && (!isAdmin()) && (getModule() != 'admin')) {
+if ((isExtensionActive('maintenance')) && (isMaintenanceEnabled()) && (!isAdmin()) && (getModule() != 'admin')) {
        // Maintain mode is active and you are no admin
        addFatalMessage(__FILE__, __LINE__, '{--MAILER_DOWN_FOR_MAINTENANCE--}');
 } elseif ((SQL_IS_LINK_UP()) && (!ifFatalErrorsDetected())) {