// Shall I withdraw now?
if (isPostRequestParameterSet('withdraw')) {
// Okay, let's prepare...
- $curr = date('m', time()) - 1;
+ $curr = getMonth() - 1;
if (strlen($curr) == 1) $curr = '0' . $curr;
updateConfiguration('last_month', $curr);
loadTemplate('admin_settings_saved', false, '{--ADMIN_BEG_WITHDRAW_PREPARED--}');
$content['total'] = translateComma($total);
// Check if we need to display form or not with manuel withdraw
- if (getConfig('last_month') == date('m', time())) {
+ if (getConfig('last_month') == getMonth()) {
// Load form
$content['withdraw_form'] = loadTemplate('admin_list_beg_form', true);
} else {