From 6102637d7bdd18272ef4b6a952cd3610e288d811 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Thu, 14 Sep 2023 17:03:27 +0700 Subject: [PATCH] Fix checking package --- 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 b87137fa..df5652ee 100644 --- a/system/controllers/order.php +++ b/system/controllers/order.php @@ -160,7 +160,7 @@ switch ($action) { ->where('status', 'on') ->find_one(); - if ($active['plan_id'] != $plan['id']) { + if ($active && $active['plan_id'] != $plan['id']) { r2(U . "order/package", 'e', Lang::T("Target has active plan, different with current plant.")." [ $active[namebp] ]"); } if (Package::rechargeUser($target['id'], $plan['routers'], $plan['id'], $user['fullname'], 'Balance')) {