]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/beg_functions.php
All database names are now 'back-ticked' and constant _MYSQL_PREFIX is wrapped. Partl...
[mailer.git] / inc / libs / beg_functions.php
index 04db5702d15d147ac96b41750fd3a46766c18a23..e6c17e9004950918ae22b7220eba8e5476e87838 100644 (file)
@@ -48,11 +48,11 @@ 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
-               unset($DEPTH);
+               unset($GLOBALS['ref_level']);
                ADD_POINTS_REFSYSTEM("beg", $uid, $points, false, "0", $locked, strtolower(getConfig('beg_mode')));
        }