if (empty($ref)) $ref = 0;
if (($ref > 0) && ($DOUBLER_UID == $uid) && (!empty($ref)))
{
- // Referral points found so add them and set line(s) to completed='Y'
+ // Referal points found so add them and set line(s) to completed='Y'
$points += $ref;
$result_ref = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_doubler SET completed='Y' WHERE refid=%s AND completed='N' AND is_ref='Y'",
array(bigintval($uid)), __FILE__, __LINE__);
}
else
{
- // No referral points found
+ // No referal points found
$ref = 0;
}
// Update doubler's account only when others are not updated
if (!$OK) {
// Add points to used doubler points
- UPDATE_CONFIG("douber_used", $points, "+");
+ UPDATE_CONFIG("doubler_used", $points, "+");
}
// Update variables to prevent errors