X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=modules.php;h=5437ef3e6ec225e67c9100d5f9fec57f3c3723f7;hp=4034faef7d39d43af39461c91a9ae1c640c3f240;hb=9afd6ec5878544a7982c50ed9c0dd7de37606d5b;hpb=3c23bfaee208fa12adf5cdd9d8e9882612199d03 diff --git a/modules.php b/modules.php index 4034faef7d..5437ef3e6e 100644 --- a/modules.php +++ b/modules.php @@ -46,7 +46,7 @@ require('inc/libs/security_functions.php'); $GLOBALS['startTime'] = microtime(true); // Init output mode and module -$GLOBALS['output_mode'] = 0; +$GLOBALS['output_mode'] = '0'; $GLOBALS['module'] = ''; // Needed include files @@ -70,7 +70,7 @@ $check = 'failed'; if ((isExtensionActive('maintenance')) && (getConfig('maintenance') == 'Y') && (!isAdmin()) && (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)) { +} elseif ((SQL_IS_LINK_UP()) && (getTotalFatalErrors() == '0')) { // Construct module name $GLOBALS['module_inc'] = sprintf("inc/modules/%s.php", getModule()); @@ -82,10 +82,10 @@ if ((isExtensionActive('maintenance')) && (getConfig('maintenance') == 'Y') && ( case 'mem_only': // Member-only access case 'done': // All fine! // Does the module exists on local file system? - if ((isIncludeReadable($GLOBALS['module_inc'])) && (getTotalFatalErrors() == 0)) { + if ((isIncludeReadable($GLOBALS['module_inc'])) && (getTotalFatalErrors() == '0')) { // Module is valid, active and located on the local disc... $isModuleValid = true; - } elseif (getTotalFatalErrors() == 0) { + } elseif (getTotalFatalErrors() == '0') { // Module not found! addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('LANG_MOD_REG_404'), getModule())); } @@ -110,7 +110,7 @@ if ((isExtensionActive('maintenance')) && (getConfig('maintenance') == 'Y') && ( addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('LANG_MOD_REG_UNKNOWN'), $check)); break; } // END - switch -} elseif (getTotalFatalErrors() == 0) { +} elseif (getTotalFatalErrors() == '0') { // MySQL problems! addFatalMessage(__FILE__, __LINE__, getMessage('MYSQL_ERRORS')); }