Previous fix fixed, a lot constants rewritten (unfinished)
[mailer.git] / inc / libs / beg_functions.php
index e6c17e9004950918ae22b7220eba8e5476e87838..fdadd1a1164620d25ca16d5324379d3f0ae65627 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