]> git.mxchange.org Git - mailer.git/blobdiff - index.php
Missing configuration fixed
[mailer.git] / index.php
index 4eb6036f9483682e9ec5f84fa522bf4c2ac38422..040678bcea2b5706a19531dc6489f8625a10cba9 100644 (file)
--- a/index.php
+++ b/index.php
@@ -47,7 +47,7 @@ $GLOBALS['startTime'] = microtime(true);
 $GLOBALS['module'] = 'index';
 
 // Set 'CSS-Mode'
-$GLOBALS['output_mode'] = 0;
+$GLOBALS['output_mode'] = '0';
 
 // Load config.php
 require('inc/config-global.php');
@@ -63,7 +63,7 @@ if (!isConfigEntrySet('index_delay'))  setConfigEntry('index_delay' , 0);
 if (!isConfigEntrySet('index_cookie')) setConfigEntry('index_cookie', 0);
 
 // Check for cookies
-if ((isSessionVariableSet('visited')) || (getConfig('index_delay') == 0) || (getConfig('index_cookie') == 0)) {
+if ((isSessionVariableSet('visited')) || (getConfig('index_delay') > -1)) {
        // Is the index page configured for redirect pr not?
        if (getConfig('index_cookie') > 0) {
                // Set cookie and remeber it for specified time