forked from kevinowino869/mitrobill
fix variable when move customer to expired plan
This commit is contained in:
@ -18,9 +18,9 @@ class Radius {
|
||||
|
||||
function remove_customer($customer, $plan)
|
||||
{
|
||||
if (empty($plan['plan_expired'])) {
|
||||
if (!empty($plan['plan_expired'])) {
|
||||
$p = ORM::for_table("tbl_plans")->find_one($plan['plan_expired']);
|
||||
$this->customerAddPlan($customer, $plan);
|
||||
$this->customerAddPlan($customer, $p);
|
||||
} else {
|
||||
$this->customerDeactivate($customer['username'], true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user