if (($refPoints > 0) && ($GLOBALS['local_doubler_userid'] == $content['userid']) && (!empty($refPoints))) {
// Referral points found so add them and set line(s) to completed='Y'
$content['points'] += $refPoints;
if (($refPoints > 0) && ($GLOBALS['local_doubler_userid'] == $content['userid']) && (!empty($refPoints))) {
// Referral points found so add them and set line(s) to completed='Y'
$content['points'] += $refPoints;