diff --git a/system/autoload/Message.php b/system/autoload/Message.php index 1f880f03..ac6b73e7 100644 --- a/system/autoload/Message.php +++ b/system/autoload/Message.php @@ -174,7 +174,7 @@ class Message $msg = str_replace('[[package]]', $package, $msg); $msg = str_replace('[[price]]', Lang::moneyFormat($price), $msg); list($bills, $add_cost) = User::getBills($customer['id']); - if ($add_cost > 0) { + if ($add_cost != 0) { $note = ""; foreach ($bills as $k => $v) { $note .= $k . " : " . Lang::moneyFormat($v) . "\n"; diff --git a/system/autoload/Package.php b/system/autoload/Package.php index 8d042812..df0ccc1c 100644 --- a/system/autoload/Package.php +++ b/system/autoload/Package.php @@ -64,7 +64,7 @@ class Package } else { // Additional cost list($bills, $add_cost) = User::getBills($id_customer); - if ($add_cost > 0 && $router_name != 'balance') { + if ($add_cost != 0 && $router_name != 'balance') { foreach ($bills as $k => $v) { $note .= $k . " : " . Lang::moneyFormat($v) . "\n"; } diff --git a/system/cron.php b/system/cron.php index 81d9f423..88509a85 100644 --- a/system/cron.php +++ b/system/cron.php @@ -71,7 +71,7 @@ foreach ($d as $ds) { // autorenewal from deposit if ($config['enable_balance'] == 'yes' && $c['auto_renewal']) { list($bills, $add_cost) = User::getBills($ds['customer_id']); - if ($add_cost > 0) { + if ($add_cost != 0) { if (!empty($add_cost)) { $p['price'] += $add_cost; } diff --git a/ui/ui/recharge-confirm.tpl b/ui/ui/recharge-confirm.tpl index 2b841873..69131344 100644 --- a/ui/ui/recharge-confirm.tpl +++ b/ui/ui/recharge-confirm.tpl @@ -66,7 +66,7 @@
{Lang::T('Total')}