X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fbeg_functions.php;h=b93c09d0aab997ec20f3ab2e12cee6d4b51ee2d6;hb=6d08952d672c5a5de7d8522f894a5665599a2a4a;hp=01b63002ee8dd7ef992083d002b188e4c2780f24;hpb=cd7d344ea7007cfa20413acd3e03e50f0ab86d86;p=mailer.git diff --git a/inc/libs/beg_functions.php b/inc/libs/beg_functions.php index 01b63002ee..b93c09d0aa 100644 --- a/inc/libs/beg_functions.php +++ b/inc/libs/beg_functions.php @@ -48,11 +48,11 @@ function addPointsBeg ($userid, $points) { // Is begging rallye active? if (isBegRallyeEnabled()) { // Add points to rallye account - SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `beg_points`=`beg_points`+%s WHERE `userid`=%s LIMIT 1", + sqlQueryEscaped("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `beg_points`=`beg_points`+%s WHERE `userid`=%s LIMIT 1", array($points, $userid), __FUNCTION__, __LINE__); // We need to set $add here, two - $added = (!SQL_HASZEROAFFECTED()); + $added = (!ifSqlHasZeroAffectedRows()); } else { // Add points to account initReferralSystem();