Fix for endless loop
[mailer.git] / birthday_confirm.php
index 68738e58d9e540a1d07dc21cdc328b6a2f7c36d4..e60f59c985468c9d96f35dcd1971a3c889a2c33b 100644 (file)
@@ -92,7 +92,7 @@ if (SQL_NUMROWS($result) == 1) {
                // Add points to account
                // @TODO Try to rewrite the following unset()
                unset($GLOBALS['ref_level']);
-               addPointsThroughReferalSystem('birthday_confirm', $userid, $data['points'], false, '0', $locked, strtolower(getConfig('birthday_mode')));
+               addPointsThroughReferalSystem('birthday_confirm', $userid, $data['points'], false, 0, $locked, strtolower(getConfig('birthday_mode')));
 
                // Remove entry from table
                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_birthday` WHERE `userid`=%s AND `chk_value`='%s' LIMIT 1",