]> git.mxchange.org Git - mailer.git/blobdiff - modules.php
Fix for missing variable
[mailer.git] / modules.php
index 6a0ab78b379b22399fb7dd34f02ce7b377b2d8ba..826deb7789bfcc641266452b1c21c83182c3acc2 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())) {
@@ -128,7 +128,7 @@ if ((isExtensionActive('maintenance')) && (getConfig('maintenance') == 'Y') && (
                        break;
        } // END - switch
 } elseif (!ifFatalErrorsDetected()) {
-       // MySQL problems detected
+       // SQL problems detected
        addFatalMessage(__FILE__, __LINE__, '{--MYSQL_ERRORS--}');
 }