]> git.mxchange.org Git - mailer.git/blobdiff - doubler.php
Mailer project rwritten:
[mailer.git] / doubler.php
index a9ab0c8ac952287c985acd9c704b3cb9571408de..e3e4d073ccc7e59713b0aa966de0640dce3d4288 100644 (file)
@@ -116,7 +116,7 @@ if (isFormSent()) {
                                incrementConfigEntry('doubler_points', $points);
 
                                // Add second line for the referral but only when userid != refid
-                               if ((isValidUserId(determineReferralId())) && (determineReferralId() != getUserData('userid'))) {
+                               if ((isValidId(determineReferralId())) && (determineReferralId() != getUserData('userid'))) {
                                        // Okay add a refid line and apply refid percents
                                        SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_doubler` (`userid`, `refid`, `points`, `remote_ip`, `timemark`, `completed`, `is_ref`) VALUES (%s,0,%s,'%s',UNIX_TIMESTAMP(),'N','Y')",
                                                array(