From 5024df9c0bd4143f8699c33d65e28e5343962231 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Thu, 12 Oct 2023 13:27:44 +0700 Subject: [PATCH] Customer update insert --- system/controllers/accounts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/controllers/accounts.php b/system/controllers/accounts.php index a7d431f0..0e2e3064 100644 --- a/system/controllers/accounts.php +++ b/system/controllers/accounts.php @@ -45,7 +45,7 @@ switch ($action) { $p = ORM::for_table('tbl_plans')->where('id', $c['plan_id'])->find_one(); if($p['is_radius']){ if($c['type'] == 'Hotspot' || ($c['type'] == 'PPPOE' && empty($d['pppoe_password']))){ - Radius::customerAdd($d, $p); + Radius::customerUpsert($d, $p); } }else{ $mikrotik = Mikrotik::info($c['routers']);