All database names are now 'back-ticked' and constant _MYSQL_PREFIX is wrapped. Partl...
[mailer.git] / inc / libs / beg_functions.php
index 7eeb42072aee47488c02c9db1c4a48490499689d..e6c17e9004950918ae22b7220eba8e5476e87838 100644 (file)
@@ -48,7 +48,7 @@ function BEG_ADD_POINTS ($uid, $points) {
        // Is begging rallye active?
        if (getConfig('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