]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/autopurge_functions.php
More SQL rewrites, TODO: Put all table and column names in backticks (`)
[mailer.git] / inc / libs / autopurge_functions.php
index 7305ba5d4f8510b29eca159513511384bf90e05f..249a4e70cbd7926aa30a81dab63698bf6f110122 100644 (file)
@@ -41,7 +41,7 @@ function AUTOPURGE_ADD_POINTS($uid, $points)
 {
        global $jackpot;
        // Check if he has locked points or not
-       $result = SQL_QUERY_ESC("SELECT ref_payout FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT ref_payout FROM `"._MYSQL_PREFIX."_user_data` WHERE userid=%s LIMIT 1",
         array(bigintval($uid)), __FILE__, __LINE__);
        list($payout) = SQL_FETCHROW($result);
        SQL_FREERESULT($result);