LIMIT %d", array($DOUBLER_POINTS, $min, getConfig('doubler_max_sent')), __FILE__, __LINE__);
// Do we have entries found?
-if (((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == "Y")) || ((SQL_NUMROWS($result_main) == getConfig('doubler_group_sent')) && (getConfig('doubler_sent_all') == "N"))) {
+if (((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == "Y")) || ((SQL_NUMROWS($result_main) == getConfig('doubler_group_sent')) && (getConfig('doubler_sent_all') != "Y"))) {
// Switch to matching SQL resource
$result_load = $result_main;
if ((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == "Y")) $result_load = $result_total;
} // END - if
// Update variables to prevent errors
- $_CONFIG['doubler_used'] += $points;
+ incrementConfigEntry('doubler_used', $points);
$DOUBLER_POINTS -= $points;
// Prepare array
// Load mail template and send mail away...
$msg = LOAD_EMAIL_TEMPLATE("member_doubler", $content, $uid);
- SEND_EMAIL($uid, DOUBLER_MEMBER_SUBJECT, $msg);
+ SEND_EMAIL($uid, getMessage('DOUBLER_MEMBER_SUBJECT'), $msg);
} // END - if
} // END - while
} // END - if