]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_bonus.php
Also this old column name is back ...
[mailer.git] / inc / modules / admin / what-list_bonus.php
index 70c57a3a5ee013a6ef08964847ce81a6dfce0e66..78e687de933eaf28bfd8377e78973a6f52c3217a 100644 (file)
@@ -47,8 +47,7 @@ if (isBonusRallyeActive()) {
        // Shall I withdraw now?
        if (isPostRequestElementSet('withdraw')) {
                // Okay, let's prepare...
-               $curr = getMonth() - 1;
-               if (strlen($curr) == 1) $curr = '0' . $curr;
+               $curr = str_pad((getMonth() - 1), 2, '0', STR_PAD_LEFT);
                updateConfiguration('last_month', $curr);
                displayMessage('{--ADMIN_BONUS_WITHDRAW_PREPARED--}');
        } // END - if