mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-07-04 15:14:24 +02:00
allow purchase = no, but can recharge
This commit is contained in:
parent
dc70a49f52
commit
012a1ecfab
1 changed files with 1 additions and 2 deletions
|
@ -99,8 +99,7 @@ if (isset($_GET['recharge']) && !empty($_GET['recharge'])) {
|
||||||
if(!$plan['enabled']){
|
if(!$plan['enabled']){
|
||||||
r2(U . "home", 'e', 'Plan is not exists');
|
r2(U . "home", 'e', 'Plan is not exists');
|
||||||
}
|
}
|
||||||
if($plan['allow_purchase'] != 'yes'){
|
|
||||||
r2(U . "home", 'e', 'Cannot recharge this plan');
|
|
||||||
}
|
}
|
||||||
if ($user['balance'] > $plan['price']) {
|
if ($user['balance'] > $plan['price']) {
|
||||||
r2(U . "order/pay/$router[id]/$bill[plan_id]", 'e', 'Order Plan');
|
r2(U . "order/pay/$router[id]/$bill[plan_id]", 'e', 'Order Plan');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue