Update Radius.php

Fix Radius Delete Plan
This commit is contained in:
Focuslinkstech 2024-07-26 18:21:48 +01:00
parent 2f1ee0cfbf
commit 282bf6190c

View File

@ -150,7 +150,7 @@ class Radius
function remove_plan($plan)
{
// Delete Plan
$this->getTablePackage()->where_equal('plan_id', "plan_" . $plan['id'])->delete_many();
$this->getTablePackage()->where_equal('plan_id', $plan['id'])->delete_many();
// Reset User Plan
$c = $this->getTableUserPackage()->where_equal('groupname', "plan_" . $plan['id'])->findMany();
if ($c) {