Fix Buy Plan with Balance

This commit is contained in:
Ibnu Maksum 2024-02-28 11:31:31 +07:00
parent 2660f5d2d0
commit 08153e6ec1
No known key found for this signature in database
GPG key ID: 7FC82848810579E5

View file

@ -142,7 +142,7 @@ switch ($action) {
$ui->display('user-orderView.tpl');
break;
case 'pay':
if ($_c['enable_balance'] != 'yes' && $config['allow_balance_transfer'] != 'yes') {
if ($_c['enable_balance'] != 'yes') {
r2(U . "order/package", 'e', Lang::T("Balance not enabled"));
}
$plan = ORM::for_table('tbl_plans')->where('enabled', '1')->find_one($routes['3']);