diff options
author | plumbeo <plumbeo@users.noreply.github.com> | 2016-12-01 17:04:37 +0100 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-12-02 13:34:38 -0200 |
commit | d265a53bd92d0f55061f27171ce7917b2397c1b5 (patch) | |
tree | 963761d5b9aeb00e196e73f45723c073f100093f | |
parent | cacbc2cb9ade620962cf0dea0bff4432a6ad7cf1 (diff) | |
download | pfsense-d265a53bd92d0f55061f27171ce7917b2397c1b5.zip pfsense-d265a53bd92d0f55061f27171ce7917b2397c1b5.tar.gz |
Fix reversed accounting style
(cherry picked from commit f3838572c59ea5ebe656851511c75d217afec815)
-rw-r--r-- | src/etc/inc/captiveportal.inc | 2 |
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 ; |