Commit faa97ea7 authored by Nigel Kukard's avatar Nigel Kukard

Better logic in if() statements

parent c25bcc38
......@@ -279,7 +279,7 @@ sub post_auth_hook
#
# Uptime..
if (!(defined($uptimeLimit) && $uptimeLimit == 0)) {
if (defined($uptimeLimit) && $uptimeLimit > 0) {
# Capped
if ($accountingUsage->{'TotalSessionTime'} >= $uptimeLimitWithTopups) {
......@@ -304,7 +304,7 @@ sub post_auth_hook
}
# Traffic
if (!(defined($trafficLimit) && $trafficLimit == 0)) {
if (defined($trafficLimit) && $trafficLimit > 0) {
# Capped
if ($accountingUsage->{'TotalDataUsage'} >= $trafficLimitWithTopups) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment