Project

General

Profile

« Previous | Next » 

Revision d265a53b

Added by Caio Plumbeo over 8 years ago

Fix reversed accounting style

(cherry picked from commit f3838572c59ea5ebe656851511c75d217afec815)

View differences:

src/etc/inc/captiveportal.inc
1801 1801
function getVolume($ip, $mac = NULL) {
1802 1802
	global $config, $cpzone, $cpzoneid;
1803 1803

  
1804
	$reverse = empty($config['captiveportal'][$cpzone]['reverseacct']) ? false : true;
1804
	$reverse = isset($config['captiveportal'][$cpzone]['reverseacct']) ? true : false;
1805 1805
	$volume = array();
1806 1806
	// Initialize vars properly, since we don't want NULL vars
1807 1807
	$volume['input_pkts'] = $volume['input_bytes'] = $volume['output_pkts'] = $volume['output_bytes'] = 0 ;

Also available in: Unified diff