More SQL rewrites, TODO: Put all table and column names in backticks (`)
[mailer.git] / inc / libs / bonus_functions.php
index a90b50b6c57c55c2a8b86c38292f7261bb23a0a7..eefd9e30c74fffbb7e15df8c200efe853f4fec61 100644 (file)
@@ -101,7 +101,7 @@ function BONUS_ADD_TURBO_POINTS($mid, $uid, $type) {
        }
 
        // Add points to his account directly
-       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET turbo_bonus=turbo_bonus+".$points." WHERE userid=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET turbo_bonus=turbo_bonus+".$points." WHERE userid=%s LIMIT 1",
                array(bigintval($uid)), __FILE__, __LINE__);
 
        // Rember this whole data for displaying ranking list