if ($DATA['points'] > 0) {
// Add points directly to user's account
ADD_POINTS_REFSYSTEM($uid, $DATA['points'], false, "0", false, "direct");
if ($DATA['points'] > 0) {
// Add points directly to user's account
ADD_POINTS_REFSYSTEM($uid, $DATA['points'], false, "0", false, "direct");