]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/bonus_functions.php
Queries fixed
[mailer.git] / inc / libs / bonus_functions.php
index fe9d30de02272a2a14ea232f3875f5d08478cc20..6418d1e5431e9c5cc50a9cba5f361abd1ba72f17 100644 (file)
@@ -95,8 +95,8 @@ function addTurboBonus ($mid, $userid, $type) {
        // Add points to his account directly
        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `turbo_bonus`=`turbo_bonus`+%s WHERE `userid`=%s LIMIT 1",
                array(
-                       bigintval($userid),
-                       $points
+                       $points,
+                       bigintval($userid)
                ), __FUNCTION__, __LINE__);
 
        // Rember this whole data for displaying ranking list