Fix checking package
This commit is contained in:
parent
c754338599
commit
6102637d7b
@ -160,7 +160,7 @@ switch ($action) {
|
|||||||
->where('status', 'on')
|
->where('status', 'on')
|
||||||
->find_one();
|
->find_one();
|
||||||
|
|
||||||
if ($active['plan_id'] != $plan['id']) {
|
if ($active && $active['plan_id'] != $plan['id']) {
|
||||||
r2(U . "order/package", 'e', Lang::T("Target has active plan, different with current plant.")." [ <b>$active[namebp]</b> ]");
|
r2(U . "order/package", 'e', Lang::T("Target has active plan, different with current plant.")." [ <b>$active[namebp]</b> ]");
|
||||||
}
|
}
|
||||||
if (Package::rechargeUser($target['id'], $plan['routers'], $plan['id'], $user['fullname'], 'Balance')) {
|
if (Package::rechargeUser($target['id'], $plan['routers'], $plan['id'], $user['fullname'], 'Balance')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user