]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_bonus.php
query masking rewritten in more SQLs, several cleanups and fix on beg link
[mailer.git] / inc / monthly / monthly_bonus.php
index eb98676f300035aeed265ffc0ff8f8317b510ce8..d877e5e6f9f50bf9818b108ea9f6f6f14d551047 100644 (file)
@@ -96,7 +96,7 @@ ORDER BY active_bonus DESC, userid LIMIT %s",
 
                        // Add points to user's account directly
                        $result_data = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_points
-SET points=points+%s WHERE ref_depth='0' AND userid=%d LIMIT 1",
+SET points=points+%s WHERE ref_depth=0 AND userid=%d LIMIT 1",
  array($points, bigintval($uid)), __FILE__, __LINE__);
 
                        // Update mediadata as well