More queries and language constants rewritten
[mailer.git] / sponsor_ref.php
index 30617e362965b856000949b0bb285353ba218764..cd35f52e164e2ba1a11f05ca2cbb5de00436366b 100644 (file)
@@ -37,9 +37,9 @@ require("inc/libs/security_functions.php");
 require("inc/config.php");
 
 // Redirect only to registration page when this script is installed
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue(mxchange_installed))) {
+if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Base URL for redirection
-       $URL = "modules.php?module=index&what=sponsor_reg&refid=";
+       $URL = "modules.php?module=index&what=sponsor_reg&refid=";
 
        // Get referal ID from ref or refid variable
        $ref = 0;