mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 02:04:53 +02:00
Fix checking package
This commit is contained in:
parent
c754338599
commit
6102637d7b
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ switch ($action) {
|
|||
->where('status', 'on')
|
||||
->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> ]");
|
||||
}
|
||||
if (Package::rechargeUser($target['id'], $plan['routers'], $plan['id'], $user['fullname'], 'Balance')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue