summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/captiveportal.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/captiveportal.inc b/src/etc/inc/captiveportal.inc
index 16129a4..130a54d 100644
--- a/src/etc/inc/captiveportal.inc
+++ b/src/etc/inc/captiveportal.inc
@@ -1801,7 +1801,7 @@ function captiveportal_get_ipfw_passthru_ruleno($value) {
function getVolume($ip, $mac = NULL) {
global $config, $cpzone, $cpzoneid;
- $reverse = empty($config['captiveportal'][$cpzone]['reverseacct']) ? false : true;
+ $reverse = isset($config['captiveportal'][$cpzone]['reverseacct']) ? true : false;
$volume = array();
// Initialize vars properly, since we don't want NULL vars
$volume['input_pkts'] = $volume['input_bytes'] = $volume['output_pkts'] = $volume['output_bytes'] = 0 ;
OpenPOWER on IntegriCloud