Mailer project rwritten:
[mailer.git] / inc / modules / guest / what-sponsor_reg.php
index 8a19eb5607ad1e9e5b2f66d2e9138b4ab55ea45c..0c5f81fd51159feba1334a8ebe3245f95845ae17 100644 (file)
@@ -291,10 +291,10 @@ ORDER BY
                        $content['form_errors'] = $OUT;
 
                        // @TODO Maybe a default referral id?
-                       $content['refid'] = 0;
+                       $content['refid'] = NULL;
 
                        // Is the referral id valid?
-                       if ((isPostRequestElementSet('refid')) && (isValidUserId(postRequestElement('refid')))) {
+                       if ((isPostRequestElementSet('refid')) && (isValidId(postRequestElement('refid')))) {
                                // Transfer referral id
                                $content['refid'] = bigintval(postRequestElement('refid'));
                        } // END - if