// 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