]> git.mxchange.org Git - mailer.git/commitdiff
Fix for ref link fix
authorRoland Häder <roland@mxchange.org>
Tue, 3 Nov 2009 15:29:43 +0000 (15:29 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 3 Nov 2009 15:29:43 +0000 (15:29 +0000)
ref.php

diff --git a/ref.php b/ref.php
index 81a521ec64be7b9d002a58d45def83237df96e48..95e6400a434320925e45b232f6372166ff0f4954 100644 (file)
--- a/ref.php
+++ b/ref.php
@@ -49,6 +49,9 @@ require('inc/config-global.php');
 // No refid by default
 $URL = 'index.php';
 
+// Invalid request by default
+$ref = 0;
+
 // Base URL for redirection
 switch (getConfig('refid_target')) {
        case 'register':
@@ -58,16 +61,13 @@ switch (getConfig('refid_target')) {
        case 'index':
                $URL = 'index.php?refid=';
                break;
-}
+} // END - switch
 
 // Get referal ID from ref or refid variable
 if (isGetRequestElementSet('ref'))        $ref = getRequestElement('ref');
  elseif (isGetRequestElementSet('refid')) $ref = getRequestElement('refid');
 
 if (!empty($ref)) {
-       // Invalid request by default
-       $ref = 0;
-
        // Test if nickname or numeric id
        if (isExtensionActive('nickname')) {
                // Nickname in URL, so load the ID