Refback will be payed now (user cannot setup currently)
[mailer.git] / inc / libs / bonus_functions.php
index 1404119..b132a99 100644 (file)
@@ -138,7 +138,7 @@ function BONUS_MAKE_RANK_ROWS($data, $type, $uid)
                for ($rank = 1; $rank <= $max; $rank++)
                {
                        // Load data
                for ($rank = 1; $rank <= $max; $rank++)
                {
                        // Load data
-                       $result_users = SQL_QUERY_ESC("SELECT userid, points, timemark FROM "._MYSQL_PREFIX."_bonus_turbo WHERE %s=%s AND level='%s' LIMIT 1",
+                       $result_users = SQL_QUERY_ESC("SELECT userid, points, timemark FROM "._MYSQL_PREFIX."_bonus_turbo WHERE %s=%s AND level=%s LIMIT 1",
                         array($type, $data, $rank), __FILE__, __LINE__);
                        list($userid, $points, $mark) = SQL_FETCHROW($result_users);
 
                         array($type, $data, $rank), __FILE__, __LINE__);
                        list($userid, $points, $mark) = SQL_FETCHROW($result_users);