Revision f3838572
Added by Caio Plumbeo over 8 years ago
src/etc/inc/captiveportal.inc | ||
---|---|---|
1839 | 1839 |
function getVolume($ip, $mac = NULL) { |
1840 | 1840 |
global $config, $cpzone, $cpzoneid; |
1841 | 1841 |
|
1842 |
$reverse = empty($config['captiveportal'][$cpzone]['reverseacct']) ? false : true;
|
|
1842 |
$reverse = isset($config['captiveportal'][$cpzone]['reverseacct']) ? true : false;
|
|
1843 | 1843 |
$volume = array(); |
1844 | 1844 |
// Initialize vars properly, since we don't want NULL vars |
1845 | 1845 |
$volume['input_pkts'] = $volume['input_bytes'] = $volume['output_pkts'] = $volume['output_bytes'] = 0 ; |
Also available in: Unified diff
Fix reversed accounting style