X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fbeg_functions.php;h=8035ccf27d1ed1f8bad22d111137e4f13bc5eb88;hp=953a5ff901cf6f070ff1f68c1bc135f850dbd8a9;hb=dc25bd7a76750f02e2d617c9db9eb0aae53270f5;hpb=d6417790061e18fc1a9770ff93bb4e9d106b2f6e diff --git a/inc/libs/beg_functions.php b/inc/libs/beg_functions.php index 953a5ff901..8035ccf27d 100644 --- a/inc/libs/beg_functions.php +++ b/inc/libs/beg_functions.php @@ -52,8 +52,7 @@ function addPointsBeg ($userid, $points) { 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()); }