diff --git a/system/controllers/customers.php b/system/controllers/customers.php index e30061d5..4ac3b5a9 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -95,7 +95,7 @@ switch ($action) { $p = ORM::for_table('tbl_plans')->where('id', $b['plan_id'])->where('enabled', '1')->find_one(); if ($p) { if ($p['is_radius']) { - Radius::customerAddPlan($c, $p); + Radius::customerAddPlan($c, $p, $p['expiration'].' '.$p['time']); r2(U . 'customers/view/' . $id_customer, 's', 'Success sync customer to Radius'); } else { $mikrotik = Mikrotik::info($b['routers']); @@ -327,7 +327,7 @@ switch ($action) { if($userDiff){ Radius::customerChangeUsername($oldusername, $username); } - Radius::customerAddPlan($d, $p); + Radius::customerAddPlan($d, $p, $p['expiration'].' '.$p['time']); }else{ $mikrotik = Mikrotik::info($c['routers']); if ($c['type'] == 'Hotspot') { diff --git a/system/controllers/prepaid.php b/system/controllers/prepaid.php index 6ffb50a9..29bb8635 100644 --- a/system/controllers/prepaid.php +++ b/system/controllers/prepaid.php @@ -50,7 +50,7 @@ switch ($action) { $p = ORM::for_table('tbl_plans')->findOne($plan['plan_id']); $c = ORM::for_table('tbl_customers')->findOne($plan['customer_id']); if($plan['routers'] == 'radius'){ - Radius::customerAddPlan($c, $p, $plans['expiration'].' '.$plans['time']); + Radius::customerAddPlan($c, $p, $plan['expiration'].' '.$plan['time']); }else{ if ($plan['type'] == 'Hotspot') { Mikrotik::addHotspotUser($client, $p, $c);