Possible fix for non-working nickname referal link
authorRoland Häder <roland@mxchange.org>
Thu, 5 Nov 2009 16:45:33 +0000 (16:45 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 5 Nov 2009 16:45:33 +0000 (16:45 +0000)
inc/functions.php

index 439827a..c22a559 100644 (file)
@@ -3186,6 +3186,9 @@ function determineReferalId () {
                // Default is not found
                $found = false;
 
+               // Set current userid here if no member
+               if (!isMember()) setCurrentUserId($GLOBALS['refid');
+
                // Do we have nickname or userid set?
                if (isNicknameUsed($GLOBALS['refid'])) {
                        // Nickname in URL, so load the id