]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_beg.php
AJAX installation is 'basicly finished' :) Plus I threw in a small christmas present...
[mailer.git] / inc / modules / admin / what-list_beg.php
index ad47803a44c7e7c983ea984420b41724fc042cb0..1eb7c9ca105531a29e9b3294e1b964e52f497f03 100644 (file)
@@ -47,8 +47,7 @@ if (isBegRallyeEnabled()) {
        // 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_BEG_WITHDRAW_PREPARED--}');
        } // END - if