]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/beg_functions.php
Fixes for referal system, shell scripts overworked:
[mailer.git] / inc / libs / beg_functions.php
index 953a5ff901cf6f070ff1f68c1bc135f850dbd8a9..8035ccf27d1ed1f8bad22d111137e4f13bc5eb88 100644 (file)
@@ -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());
        }