SQL_FREERESULT($result_links);
// At least one link was found, enougth to pay back the points
- if (($userid != $content['userid']) && (isValidUserId($userid)) && ($points > 0)) {
+ if (($userid != $content['userid']) && (isValidId($userid)) && ($points > 0)) {
// Directly add points back to senders account
addPointsAutoPurge($userid, $points);
$points = '0';