mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-17 16:21:25 +02:00
Fix Bills Zero
This commit is contained in:
parent
23790d3258
commit
32943b40be
1 changed files with 2 additions and 1 deletions
|
@ -33,6 +33,7 @@ class Package
|
||||||
$p = ORM::for_table('tbl_plans')->where('id', $plan_id)->find_one();
|
$p = ORM::for_table('tbl_plans')->where('id', $plan_id)->find_one();
|
||||||
|
|
||||||
$add_cost = 0;
|
$add_cost = 0;
|
||||||
|
$bills = [];
|
||||||
// Zero cost recharge
|
// Zero cost recharge
|
||||||
if (isset($zero) && $zero == 1) {
|
if (isset($zero) && $zero == 1) {
|
||||||
$p['price'] = 0;
|
$p['price'] = 0;
|
||||||
|
@ -568,7 +569,7 @@ class Package
|
||||||
"\nPrice: " . Lang::moneyFormat($p['price']));
|
"\nPrice: " . Lang::moneyFormat($p['price']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (count($bills) > 0) {
|
if (is_array($bills) && count($bills) > 0) {
|
||||||
User::billsPaid($bills, $id_customer);
|
User::billsPaid($bills, $id_customer);
|
||||||
}
|
}
|
||||||
run_hook("recharge_user_finish");
|
run_hook("recharge_user_finish");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue