From 7fb08eb76f6400d0a07744d94427c85d8d00c8b0 Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Mon, 4 Nov 2024 10:44:39 +0700 Subject: [PATCH] fix unpaid order --- system/controllers/home.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/system/controllers/home.php b/system/controllers/home.php index 25feace1..f7f4c5fc 100644 --- a/system/controllers/home.php +++ b/system/controllers/home.php @@ -326,7 +326,6 @@ $vpn = ORM::for_table('tbl_port_pool') $ui->assign('cf', $tcf); $ui->assign('vpn', $vpn); -$unpaids = []; $unpaid = ORM::for_table('tbl_payment_gateway') ->where('username', $user['username']) ->where('status', 1) @@ -354,7 +353,7 @@ if ($unpaid) { } } -$ui->assign('unpaid', $unpaids); +$ui->assign('unpaid', $unpaid); $ui->assign('code', alphanumeric(_get('code'), "-")); $abills = User::getAttributes("Bill");