X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fdoubler_send.php;h=fd5d61d29a676c9f30fb3f5bc85a792f2cffe661;hb=43f8fab36af6c030d8835e1118cab430f8585e67;hp=b6a7505e1d14aea7fee79adf323d558941bc1f54;hpb=497d9d8fcda61391c149af3747118bb2772c7c26;p=mailer.git diff --git a/inc/doubler_send.php b/inc/doubler_send.php index b6a7505e1d..fd5d61d29a 100644 --- a/inc/doubler_send.php +++ b/inc/doubler_send.php @@ -99,7 +99,7 @@ if (((SQL_NUMROWS($result_total) > 0) && ($_CONFIG['doubler_sent_all'] == "Y")) // Exclude webmaster from doubling... if ($uid != $_CONFIG['doubler_uid']) { // Add points - ADD_POINTS_REFSYSTEM($uid, $points, false, "0", false, "direct"); + ADD_POINTS_REFSYSTEM(sprintf("doubler_%s", strtolower($_CONFIG['doubler_send_mode'])), $uid, $points, false, "0", false, "direct"); } // END - if // Set entry as "payed" @@ -120,7 +120,7 @@ if (((SQL_NUMROWS($result_total) > 0) && ($_CONFIG['doubler_sent_all'] == "Y")) // Exclude also webmaster's ID in taking points from webmaster's account if (($user > 0) && ($user >= $points) && (!$OK) && ($_CONFIG['doubler_uid'] > 0) && ($uid != $_CONFIG['doubler_uid'])) { // Add points to used points - SUB_POINTS($_CONFIG['doubler_uid'], $points); + SUB_POINTS("doubler_payout", $_CONFIG['doubler_uid'], $points); // Okay, done! $OK = true;