]> git.mxchange.org Git - mailer.git/blobdiff - ref.php
Invalid configuration mailid causes empty page
[mailer.git] / ref.php
diff --git a/ref.php b/ref.php
index d733f53f890d8728273b27f436b060d88761f03d..e6e51d7b83f32eb87eb95da143a01c512d6ed557 100644 (file)
--- a/ref.php
+++ b/ref.php
@@ -45,7 +45,7 @@ $GLOBALS['module'] = "ref"; $CSS = -1;
 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
        switch ($_CONFIG['refid_target'])
        {
@@ -73,7 +73,7 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
                } // END - if
 
                // Also edit this 0 !
-               if (empty($ref)) $ref = "0";
+               if (empty($ref)) $ref = 0;
 
                // We have an refid here. So we simply add it
                $URL .= bigintval($ref);