From 4f5475a4f382f6488bedca621cca9243bc72f44b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 3 Nov 2009 15:29:43 +0000 Subject: [PATCH] Fix for ref link fix --- ref.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ref.php b/ref.php index 81a521ec64..95e6400a43 100644 --- 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 -- 2.39.5