Fix for wrong array element, translation of points added
authorRoland Häder <roland@mxchange.org>
Sat, 1 Nov 2008 15:31:59 +0000 (15:31 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 1 Nov 2008 15:31:59 +0000 (15:31 +0000)
inc/databases.php
inc/monthly/monthly_beg.php
inc/monthly/monthly_bonus.php

index 7691ac6..1d24874 100644 (file)
@@ -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);
index a96f756..73d3a57 100644 (file)
@@ -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
 
index de9bf0b..459afa6 100644 (file)
@@ -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']));