X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fbonus_functions.php;h=5ceee1324997971c3911fa6e26505e4f55a7c0f6;hp=68ac09ada8360a0b6dbe58180dbe8ba14a1b9716;hb=8f60465485bd5e9ab2c0ddfa1f054458cf510042;hpb=c1f17f1495b1666f02e70ad6752bdb9673fa5e1f diff --git a/inc/libs/bonus_functions.php b/inc/libs/bonus_functions.php index 68ac09ada8..5ceee13249 100644 --- a/inc/libs/bonus_functions.php +++ b/inc/libs/bonus_functions.php @@ -195,11 +195,8 @@ function BONUS_POINTS_HANDLER ($MODE) { // Switch to jackpot-mode when no UID is supplied but userid-mode is selected if ((getConfig('bonus_mode') == "UID") && (getConfig('bonus_uid') == "0")) { - // Update database - UPDATE_CONFIG(array('bonus_mode'), array("JACKPOT")); - - // Update configuration - $_CONFIG['bonus_mode'] = "JACKPOT"; + // Update database & config + UPDATE_CONFIG('bonus_mode', "JACKPOT"); } // END - if if ($MODE == "login_bonus") {