removePpoeActive based pppoe_username

This commit is contained in:
Ibnu Maksum
2024-08-08 14:44:42 +07:00
parent ce7d8859b0
commit d830ba4e06
3 changed files with 6 additions and 3 deletions

View File

@ -60,11 +60,13 @@ class MikrotikPppoe
//disconnect then
if(isset($isChangePlan) && $isChangePlan){
$this->removePpoeActive($client, $customer['username']);
if (!empty($customer['pppoe_username'])) {
$this->removePpoeActive($client, $customer['pppoe_username']);
}
}
}
}
function remove_customer($customer, $plan)
{
$mikrotik = $this->info($plan['routers']);