From faab21bccf8fc5ea6a141f53dd50727b2f1e9e83 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Thu, 24 Aug 2023 14:46:38 +0700 Subject: [PATCH] fix sending money --- system/controllers/home.php | 2 +- ui/ui/user-dashboard.tpl | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/system/controllers/home.php b/system/controllers/home.php index 85e85836..821261be 100644 --- a/system/controllers/home.php +++ b/system/controllers/home.php @@ -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']) { diff --git a/ui/ui/user-dashboard.tpl b/ui/ui/user-dashboard.tpl index 12c7e358..39a63c31 100644 --- a/ui/ui/user-dashboard.tpl +++ b/ui/ui/user-dashboard.tpl @@ -162,7 +162,9 @@