X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-sponsor_reg.php;h=eca8610959f2ce33691c68143920ca34139913d5;hb=e8ce566b7f77e4f96fa8a6d6ced4b8f5053c447a;hp=3e9247743bff3350e408db3b07d25607b9e81e85;hpb=d3c4fdd9bfab35389e1a5ff48f3952d527c7b4bb;p=mailer.git diff --git a/inc/modules/guest/what-sponsor_reg.php b/inc/modules/guest/what-sponsor_reg.php index 3e9247743b..eca8610959 100644 --- a/inc/modules/guest/what-sponsor_reg.php +++ b/inc/modules/guest/what-sponsor_reg.php @@ -198,7 +198,7 @@ if (isFormSent()) { if (count($FORM_ERRORS) > 0) unsetPostRequestElement('ok'); } -if ((isFormSent()) && (count($FORM_ERRORS) == 0)) { +if ((isFormSent()) && (count($FORM_ERRORS) == '0')) { // Generate message array $messageArray = array( 'failed' => getMessage('SPONSOR_REGISTRATION_FAILED'), @@ -345,14 +345,8 @@ ORDER BY `pay_name`", __FILE__, __LINE__); $content['refid'] = bigintval(postRequestElement('refid')); } // END - if - // Prepare referal things - if (isGetRequestElementSet('refid')) { - // Referal id transmitted, we don't care here if it is right or not - $content['refid'] = bigintval(getRequestElement('refid')); - } else { - // No referal link - $content['refid'] = 0; - } + // Prepare referal id + $content['refid'] = determineReferalId(); // Display registration form loadTemplate('guest_sponsor_reg', false, $content);