]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-payout.php
More places are now using GET_TOTAL_DATA() instead of query
[mailer.git] / inc / modules / member / what-payout.php
index 1983bb7171fa9b53334fe02cd5ec8a7ff3d70111..7c45d6a89ebc61c02d1197cc429af94140745e86 100644 (file)
@@ -66,10 +66,8 @@ while (list($lvl, $per) = SQL_FETCHROW($result_depths))
 // Free memory
 SQL_FREERESULT($result_depths);
 
-$result = SQL_QUERY_ESC("SELECT used_points FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
- array($GLOBALS['userid']), __FILE__, __LINE__);
-list($USED) = SQL_FETCHROW($result);
-SQL_FREERESULT($result);
+// Get used points
+$USED = GET_TOTAL_DATA($GLOBALS['userid'], "user_data", "used_points");
 
 // Translate point into comma
 $TPTS = TRANSLATE_COMMA($TPTS - $USED);