]> git.mxchange.org Git - mailer.git/blobdiff - index.php
Script rewritten to setConfigEntry(), getConfig() and incrementConfigEntry()
[mailer.git] / index.php
index 9142d90b424af8d7cca30c3472d5211e43c28302..aed7b1e9c5aae036b64c9211ca9c2db32c9b7742 100644 (file)
--- a/index.php
+++ b/index.php
@@ -51,8 +51,8 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
        LOAD_INC("inc/header.php");
 
        // Fix missing array elements here
-       if (getConfig('index_delay') == null)  $_CONFIG['index_delay']  = 0;
-       if (getConfig('index_cookie') == null) $_CONFIG['index_cookie'] = 0;
+       if (getConfig('index_delay') == null)  setConfigEntry('index_delay' , 0);
+       if (getConfig('index_cookie') == null) setConfigEntry('index_cookie', 0);
 
        // Check for cookies
        if ((isSessionVariableSet('visited')) || (getConfig('index_delay') == 0) || (getConfig('index_cookie') == 0)) {