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(