From: Roland Häder Date: Sat, 1 Nov 2008 15:31:59 +0000 (+0000) Subject: Fix for wrong array element, translation of points added X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=40d8e4727d119455f13fb91bb47adc3d9587ef9c;p=mailer.git Fix for wrong array element, translation of points added --- diff --git a/inc/databases.php b/inc/databases.php index 7691ac6979..1d2487436d 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -114,7 +114,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "521"); +define('CURR_SVN_REVISION', "522"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/monthly/monthly_beg.php b/inc/monthly/monthly_beg.php index a96f75673f..73d3a57f36 100644 --- a/inc/monthly/monthly_beg.php +++ b/inc/monthly/monthly_beg.php @@ -74,13 +74,14 @@ LIMIT %s", // Load our winners... while ($content = SQL_FETCHARRAY($result_main)) { // Add points to user's account directly - ADD_POINTS_REFSYSTEM($content['uid'], $content['points'], false, "0", false, "direct"); + ADD_POINTS_REFSYSTEM($content['userid'], $content['points'], false, "0", false, "direct"); - // Translate gender + // Translate gender/points $content['gender'] = TRANSLATE_GENDER($content['gender']); + $content['points'] = TRANSLATE_COMMA($content['points']); // Load email template and email it away - $msg = LOAD_EMAIL_TEMPLATE("member_beg", $content, bigintval($content['uid'])); + $msg = LOAD_EMAIL_TEMPLATE("member_beg", $content, bigintval($content['userid'])); SEND_EMAIL($content['email'], BEG_MONTHLY_RALLYE, $msg); } // END - while diff --git a/inc/monthly/monthly_bonus.php b/inc/monthly/monthly_bonus.php index de9bf0b9cc..459afa67a0 100644 --- a/inc/monthly/monthly_bonus.php +++ b/inc/monthly/monthly_bonus.php @@ -88,8 +88,9 @@ ORDER BY active_bonus DESC, userid LIMIT %s", // Add points to user's account directly ADD_POINTS_REFSYSTEM($content['uid'], $content['points'], false, "0", false, "direct"); - // Translate gender + // Translate gender/points $content['gender'] = TRANSLATE_GENDER($content['gender']); + $content['points'] = TRANSLATE_COMMA($content['points']); // Load email template and email it away $msg = LOAD_EMAIL_TEMPLATE("member_bonus", $content['points'], bigintval($content['uid']));