Rewrote reset and some extensions:
[mailer.git] / inc / modules / admin / what-list_bonus.php
index f4c804f6e615e29dd41b51d9db13fa37076c51b1..ee0a4fba8cbe2e0279528e8f8517299613f89d17 100644 (file)
@@ -48,7 +48,7 @@ if (isBonusRallyeActive()) {
        if (isPostRequestElementSet('withdraw')) {
                // Okay, let's prepare...
                $curr = padLeftZero(getMonth() - 1);
-               updateConfiguration('last_month', $curr);
+               updateConfiguration('last_monthly', $curr);
                displayMessage('{--ADMIN_BONUS_WITHDRAW_PREPARED--}');
        } // END - if
 
@@ -124,7 +124,7 @@ ORDER BY
                $content['total_points'] = $total;
 
                // Check if we need to display form or not with manuel withdraw
-               if (getLastMonth() == getMonth()) {
+               if (getLastMonthly() == getMonth()) {
                        // Load form
                        $content['withdraw_form'] = loadTemplate('admin_list_bonus_form', TRUE);
                } else {