More EL code, security for $_POST elements rewritten (simplified):
[mailer.git] / inc / monthly / monthly_beg.php
index 232bee7b0e91083fa2ee255dfd17b4c0f439a94b..c1effc065c918e777e5a0581d5dee514865a223c 100644 (file)
@@ -71,7 +71,7 @@ if ((getBegRanks() > 0) && (!isCssOutputMode())) {
 
        // SQL string to check for accounts
        $result_main = SQL_QUERY("SELECT
-       `userid`, `email`, `gender`, `surname`, `family`, `beg_points` AS `points`
+       `userid`, `email`, `gender`, `surname`, `family`, `beg_points`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -86,7 +86,7 @@ LIMIT {?beg_ranks?}", __FILE__, __LINE__);
                // Load our winners...
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Add points to user's account directly
-                       addPointsDirectly('monthly_beg', $content['userid'], $content['points']);
+                       addPointsDirectly('monthly_beg', $content['userid'], $content['beg_points']);
 
                        // Load email template and email it away
                        $message = loadEmailTemplate('member_beg', $content, bigintval($content['userid']));