]> git.mxchange.org Git - mailer.git/blobdiff - birthday_confirm.php
Script action-sponsor.php in guest area doesn't display the navigation link 'You...
[mailer.git] / birthday_confirm.php
index 8619fc7056b819e703e7769695f5394a526469b5..2923ceb2c9aaafe9e1f63f0e9cdb6039c0c0835f 100644 (file)
@@ -90,9 +90,8 @@ 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']);
-               addPointsThroughReferalSystem('birthday_confirm', $userid, $data['points'], false, 0, strtolower(getConfig('birthday_mode')));
+               initReferalSystem();
+               addPointsThroughReferalSystem('birthday_confirm', $userid, $data['points']);
 
                // Remove entry from table
                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_birthday` WHERE `userid`=%s AND `chk_value`='%s' LIMIT 1",