Merge branch 'hotfix/2023.8.24.1'

This commit is contained in:
Ibnu Maksum 2023-08-24 14:46:55 +07:00
commit d51edefc10
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@ if (_post('send') == 'balance') {
if ($user['balance'] < $balance) {
r2(U . 'home', 'd', Lang::T('insufficient balance'));
}
if (intval($config['minimum_transfer']) >= intval($balance)) {
if (!empty($config['minimum_transfer']) && intval($balance) <= intval($config['minimum_transfer'])) {
r2(U . 'home', 'd', Lang::T('Minimum Transfer') . ' ' . Lang::moneyFormat($config['minimum_transfer']));
}
if ($user['username'] == $target['username']) {

View File

@ -162,7 +162,9 @@
<script>
function askConfirm(){
if(confirm('{Lang::T('Send your balance?')}')){
document.getElementById('sendBtn').setAttribute('disabled', '');
setTimeout(() => {
document.getElementById('sendBtn').setAttribute('disabled', '');
}, 1000);
return true;
}
return false;