X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-points.php;h=11a8db0a0e12904f10b9ab8acfa35e66de1fccc7;hp=780d05a23d87c746531fee85396b9a6e98e2cb3a;hb=3819d37a11c5a1c29745fd1139ab07cefbb5ecd6;hpb=23f39916099dad094d2d2b0fe54d335bddc986db diff --git a/inc/modules/member/what-points.php b/inc/modules/member/what-points.php index 780d05a23d..11a8db0a0e 100644 --- a/inc/modules/member/what-points.php +++ b/inc/modules/member/what-points.php @@ -62,7 +62,7 @@ while (list($lvl, $per) = SQL_FETCHROW($result_depths)) { $REFS = 0; // Load referral points - $result_points = SQL_QUERY_ESC("SELECT points, locked_points FROM "._MYSQL_PREFIX."_user_points WHERE userid=%s AND ref_depth=%s LIMIT 1", array($GLOBALS['userid'], bigintval($lvl)), __FILE__, __LINE__); + $result_points = SQL_QUERY_ESC("SELECT points, locked_points FROM "._MYSQL_PREFIX."_user_points WHERE userid=%s AND ref_depth=%d LIMIT 1", array($GLOBALS['userid'], bigintval($lvl)), __FILE__, __LINE__); if (SQL_NUMROWS($result_points) == 1) { list($points, $LOCKED) = SQL_FETCHROW($result_points); SQL_FREERESULT($result_points);