More SQL rewrites, TODO: Put all table and column names in backticks (`)
[mailer.git] / inc / libs / beg_functions.php
index adfd3f549236fcf897dc433dea8b0a1991b2ba05..8ab5bf13a12fedfe3ab2c1cd6a6e571f63c1db7e 100644 (file)
@@ -48,7 +48,7 @@ function BEG_ADD_POINTS ($uid, $points) {
        // Is begging rallye active?
        if ($_CONFIG['beg_rallye'] == "Y") {
                // Add points to rallye account
-               SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET beg_points=beg_points+%s WHERE userid=%s LIMIT 1",
+               SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET beg_points=beg_points+%s WHERE userid=%s LIMIT 1",
                        array($points, $uid), __FILE__, __LINE__);
        } else {
                // Add points to account