X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=birthday_confirm.php;h=2923ceb2c9aaafe9e1f63f0e9cdb6039c0c0835f;hb=2efa0c2a12d77f9c0133e6f86a2a83a68700b743;hp=8619fc7056b819e703e7769695f5394a526469b5;hpb=330dbb3e2b34450cd1665497506455e195a0a166;p=mailer.git diff --git a/birthday_confirm.php b/birthday_confirm.php index 8619fc7056..2923ceb2c9 100644 --- a/birthday_confirm.php +++ b/birthday_confirm.php @@ -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",