query masking rewritten in more SQLs, several cleanups and fix on beg link
[mailer.git] / inc / modules / member / what-transfer.php
index fdde08146f8c41a753474fdd121448a472bf579e..13386b10d4a2c275e9a8835be964cd950592f887 100644 (file)
@@ -206,7 +206,7 @@ case "new": // Start new transfer
                         __FILE__, __LINE__);
 
                        // Add points to account *directly* ...
-                       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_points SET points=points+%s WHERE userid=%d AND ref_depth='0' LIMIT 1",
+                       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_points SET points=points+%s WHERE userid=%d AND ref_depth=0 LIMIT 1",
                         array(bigintval($_POST['points']), bigintval($_POST['to_uid'])), __FILE__, __LINE__);
 
                        // ... and add it to current user's used points