array($points, $userid), __FUNCTION__, __LINE__);
} else {
// Add points to account
- // @TODO Try to rewrite the following unset()
- unset($GLOBALS['ref_level']);
+ initReferalSystem();
$added = addPointsThroughReferalSystem('beg', $userid, $points, false, 0, getBegMode());
}