-function AUTOPURGE_ADD_POINTS($uid, $points) {
- // Check if he has locked points or not
- $result = SQL_QUERY_ESC("SELECT ref_payout FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
- array(bigintval($uid)), __FUNCTION__, __LINE__);
- list($payout) = SQL_FETCHROW($result);
- SQL_FREERESULT($result);
+// Add points in autopurge-mode
+function addPointsAutoPurge ($userid, $points) {
+ // Is the userid valid?
+ if (!isValidUserId($userid)) {
+ // Please report all these bugs
+ debug_report_bug(__FUNCTION__, __LINE__, 'Invalid call. userid=' . $userid . ',points=' . $points);
+ } // END - if