X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmonthly%2Fmonthly_bonus.php;h=d877e5e6f9f50bf9818b108ea9f6f6f14d551047;hb=4d6226782aa4ba157dca8c3891412ba50159481f;hp=eb98676f300035aeed265ffc0ff8f8317b510ce8;hpb=816b0a4a62c6034558d471430d936223ef5cabca;p=mailer.git diff --git a/inc/monthly/monthly_bonus.php b/inc/monthly/monthly_bonus.php index eb98676f30..d877e5e6f9 100644 --- a/inc/monthly/monthly_bonus.php +++ b/inc/monthly/monthly_bonus.php @@ -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