A lot while() conditions rewritten to SQL_FETCHARRAY(), see bug #107, @TODO tags...
[mailer.git] / ref.php
diff --git a/ref.php b/ref.php
index 35b1e175feb92d6f829c4795330737e8a002707e..66d545f342c0fe37f95ef79d58ffdc28fe35d8c1 100644 (file)
--- a/ref.php
+++ b/ref.php
@@ -46,7 +46,7 @@ $GLOBALS['output_mode'] = -1;
 require("inc/config.php");
 
 // Redirect only to registration page when this script is installed
-if (isBooleanConstantAndTrue('mxchange_installed')) {
+if (isInstalled()) {
        // Base URL for redirection
        switch (getConfig('refid_target'))
        {
@@ -60,8 +60,8 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
        }
 
        // Get referal ID from ref or refid variable
-       if (REQUEST_ISSET_GET(('ref')))        $ref = secureString(REQUEST_GET('ref'));
-        elseif (REQUEST_ISSET_GET(('refid'))) $ref = secureString(REQUEST_GET('refid'));
+       if (REQUEST_ISSET_GET(('ref')))        $ref = REQUEST_GET('ref');
+        elseif (REQUEST_ISSET_GET(('refid'))) $ref = REQUEST_GET('refid');
 
        if (!empty($ref)) {
                // Test if nickname or numeric id