]> git.mxchange.org Git - mailer.git/commitdiff
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 7691ac69799a4b3f936b948a31ac7fb6fe5fce0c..1d2487436dc1deea08be1c0e4f90efeba3a45d0e 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 a96f75673f812ead1a0a4e9a658d9f6a0fe77a5c..73d3a57f361958282af0dec7fbc7cc64079ab82c 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 de9bf0b9ccc0002156d19666c5702dd9040f8ee1..459afa67a00f32bc1e7ead0cd9a7b32db5844d6f 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']));