]> git.mxchange.org Git - mailer.git/blobdiff - birthday_confirm.php
Fixes for referal system, shell scripts overworked:
[mailer.git] / birthday_confirm.php
index 8619fc7056b819e703e7769695f5394a526469b5..24f71259c4b978e0badad49c0326e73286c5a25c 100644 (file)
@@ -90,8 +90,7 @@ if (SQL_NUMROWS($result) == 1) {
        // Is the account confirmed?
        if ($data['status'] == 'CONFIRMED') {
                // Add points to account
-               // @TODO Try to rewrite the following unset()
-               unset($GLOBALS['ref_level']);
+               initReferalSystem();
                addPointsThroughReferalSystem('birthday_confirm', $userid, $data['points'], false, 0, strtolower(getConfig('birthday_mode')));
 
                // Remove entry from table