Misc fixes
[mailer.git] / ref.php
diff --git a/ref.php b/ref.php
index d3fdc56e33f5fc24a404249cfc2f55d6810c0fce..456fc3b9691169625ca332d91624ff6ab7c7f977 100644 (file)
--- a/ref.php
+++ b/ref.php
@@ -45,10 +45,10 @@ $GLOBALS['module'] = "ref"; $CSS = -1;
 require ("inc/config.php");
 
 // Redirect only to registration page when this script is installed
-if (defined('mxchange_installed') && (mxchange_installed))
+if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')))
 {
        // Base URL for redirection
-       switch ($CONFIG['refid_target'])
+       switch ($_CONFIG['refid_target'])
        {
        case "register":
                $URL = URL."/modules.php?module=index&what=register&refid=";
@@ -96,7 +96,7 @@ if (defined('mxchange_installed') && (mxchange_installed))
  else
 {
        // You have to configure first!
-       LOAD_URL(URL."/install.php");
+       LOAD_URL("install.php");
 }
 
 // Really all done here... ;-)