query masking rewritten in more SQLs, several cleanups and fix on beg link
[mailer.git] / inc / libs / autopurge_functions.php
index 7318af10785ddba49a27e50dd7827493306eaeb1..f6bd9f340bca07b3615d4c5c1284a4117442beb0 100644 (file)
@@ -67,7 +67,7 @@ function AUTOPURGE_ADD_POINTS($uid, $points)
         else
        {
                // .. to user's account
-               $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_points SET %s=%s+%s WHERE userid=%d AND ref_depth='0' LIMIT 1",
+               $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_points SET %s=%s+%s WHERE userid=%d AND ref_depth=0 LIMIT 1",
                 array($target, $target, $points, bigintval($uid)), __FILE__, __LINE__);
 
                // Update mediadata as well