Fixed handling of nicknames as 'refid':
[mailer.git] / sponsor_ref.php
index d6cbd1f0de10c076b9a16990154897b71790d003..dd2bb617c612b06c02caeefbb3ea6fcd40932de4 100644 (file)
@@ -53,9 +53,9 @@ setContentType('text/html');
 $url = 'modules.php?module=index';
 
 // Do we have a referal id?
-if (isValidUserId($GLOBALS['refid'])) {
+if (isReferalIdValid()) {
        // We have an refid here. So we simply add it
-       $url .= '&what=sponsor_reg&refid=' . $GLOBALS['refid'];
+       $url .= '&what=sponsor_reg&refid=' . determineReferalId();
 } // END - if
 
 // Load the URL