From 40d8e4727d119455f13fb91bb47adc3d9587ef9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 1 Nov 2008 15:31:59 +0000 Subject: [PATCH] Fix for wrong array element, translation of points added --- inc/databases.php | 2 +- inc/monthly/monthly_beg.php | 7 ++++--- inc/monthly/monthly_bonus.php | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) 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'])); -- 2.30.2