handling of boolean constants improved (not fully)
[mailer.git] / inc / session.php
index 4d8c9d60137ca66d5d0aa316ed12391a94a37059..b0420aa12d9ef849f36d6b47ff008dc72ce9521e 100644 (file)
@@ -85,7 +85,7 @@ if (empty($_SESSION['refid']) || (!empty($GLOBALS['refid'])) || (($_SESSION['ref
 }
 
 // Test session if index.php or modules.php is loaded
-if ((basename($_SERVER['PHP_SELF']) == "index.php") || (basename($_SERVER['PHP_SELF']) == "modules.php") || (mxchange_installing)) {
+if ((basename($_SERVER['PHP_SELF']) == "index.php") || (basename($_SERVER['PHP_SELF']) == "modules.php") || (isBooleanConstantAndTrue('mxchange_installing'))) {
        if (count($_SESSION) > 0) {
                // Session variables accepted!
                define('__COOKIES', true);