Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / libs / beg_functions.php
index 01b63002ee8dd7ef992083d002b188e4c2780f24..b93c09d0aab997ec20f3ab2e12cee6d4b51ee2d6 100644 (file)
@@ -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();