- // Add last points to last user account
- if ($points > 0) addPointsAutoPurge($userid, $points);
+ // Are some points collected?
+ if (($points > 0) && (isValidId($userid))) {
+ // Add last points to last user account
+ addPointsAutoPurge($userid, $points);
+ } // END - if