X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fbonus_functions.php;h=ebd186a483860ca374665957387d0849c10c6330;hb=eaff7aaabaa92f48bbaf28dbdeaa352dbceb9b9f;hp=c52b7a9bbdb06b8e91abe77564de6aac08a891c2;hpb=60494e212a67fe360bfbb481eb4928480a6f379b;p=mailer.git diff --git a/inc/libs/bonus_functions.php b/inc/libs/bonus_functions.php index c52b7a9bbd..ebd186a483 100644 --- a/inc/libs/bonus_functions.php +++ b/inc/libs/bonus_functions.php @@ -43,7 +43,7 @@ function BONUS_ADD_TURBO_POINTS($mid, $uid, $type) global $_CONFIG; // Shall we add bonus points? - if ($_CONFIG['bonus_active'] == 'N') return; + if ($_CONFIG['bonus_active'] == "N") return; // Select SQL command $SQL = ""; @@ -186,7 +186,7 @@ function BONUS_POINTS_HANDLER($MODE) global $_CONFIG; // Shall we add bonus points? - if ($_CONFIG['bonus_active'] == 'N') return; + if ($_CONFIG['bonus_active'] == "N") return; // Switch to jackpot-mode when no UID is supplied but userid-mode is selected if (($_CONFIG['bonus_mode'] == "UID") && ($_CONFIG['bonus_uid'] == "0")) $_CONFIG['bonus_mode'] = "JACKPOT"; @@ -245,7 +245,7 @@ function BONUS_POINTS_HANDLER($MODE) else { // Try to subtract from jackpot - $DUMMY = SUB_JACKPOT($points); + $dummy = SUB_JACKPOT($points); } break; } @@ -260,15 +260,7 @@ function BONUS_PURGE_EXPIRED_TURBO_BONUS() if ($DELETED > 0) { // Send out email to admin - if (GET_EXT_VERSION("admins") >= "0.4.1") - { - SEND_ADMIN_EMAILS_PRO(AUTOPURGE_ADMIN_TURBO_SUBJECT, "admin_autopurge_turbo", $DELETED, ""); - } - else - { - $msg = LOAD_EMAIL_TEMPLATE("admin_autopurge_turbo", $DELETED, ""); - SEND_ADMIN_EMAILS(AUTOPURGE_ADMIN_TURBO_SUBJECT, $msg); - } + SEND_ADMIN_NOTIFICATION(AUTOPURGE_ADMIN_TURBO_SUBJECT, "admin_autopurge_turbo", $DELETED, ""); } } //