From de85d30a9ec5e3d4e0eb16aa95955b317146760e Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Fri, 2 Aug 2024 16:03:20 +0700 Subject: [PATCH] Fix view order if it not unpaid --- system/controllers/order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/controllers/order.php b/system/controllers/order.php index 177063a9..7848d2a8 100644 --- a/system/controllers/order.php +++ b/system/controllers/order.php @@ -103,7 +103,7 @@ switch ($action) { r2(U . "order/package", 'w', Lang::T("Payment not found")); } // jika url kosong, balikin ke buy, kecuali cancel - if (empty($trx['pg_url_payment']) && $routes['3'] != 'cancel') { + if ($trx['status'] == 1 && empty($trx['pg_url_payment']) && $routes['3'] != 'cancel') { r2(U . "order/buy/" . (($trx['routers_id'] == 0) ? $trx['routers'] : $trx['routers_id']) . '/' . $trx['plan_id'], 'w', Lang::T("Checking payment")); } if ($routes['3'] == 'check') {