From 9436a6e8f117ac19a2af38a9b5d612a69b884f24 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Thu, 29 Aug 2024 11:23:57 +0700 Subject: [PATCH] remove active when extend --- system/controllers/home.php | 2 ++ system/controllers/plan.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/system/controllers/home.php b/system/controllers/home.php index 7c51018a..147476b5 100644 --- a/system/controllers/home.php +++ b/system/controllers/home.php @@ -188,6 +188,8 @@ if (isset($_GET['recharge']) && !empty($_GET['recharge'])) { if ($_app_stage != 'demo') { if (file_exists($dvc)) { require_once $dvc; + global $isChangePlan; + $isChangePlan = true; (new $p['device'])->add_customer($user, $p); } else { new Exception(Lang::T("Devices Not Found")); diff --git a/system/controllers/plan.php b/system/controllers/plan.php index 59505276..dc92ba6f 100644 --- a/system/controllers/plan.php +++ b/system/controllers/plan.php @@ -848,6 +848,8 @@ switch ($action) { if ($_app_stage != 'demo') { if (file_exists($dvc)) { require_once $dvc; + global $isChangePlan; + $isChangePlan = true; (new $p['device'])->add_customer($c, $p); } else { new Exception(Lang::T("Devices Not Found"));