summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-14 09:42:56 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-02-14 09:42:56 -0200
commit8878f4bb0a418c35188a5d1ecf851a5a28600d65 (patch)
tree8079cef2322bea4200dcfcaa2655ebfac4486cda /usr
parent80feb8e5ddff6a703e900fc7dd4aad041598545c (diff)
downloadpfsense-8878f4bb0a418c35188a5d1ecf851a5a28600d65.zip
pfsense-8878f4bb0a418c35188a5d1ecf851a5a28600d65.tar.gz
Fix rrd display when captive portal is enabled
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_rrd_graph.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index 212b660..bfee28f 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -473,7 +473,7 @@ function get_dates($curperiod, $graph) {
if(! preg_match("/($curcat)/i", $database))
continue;
- if (!empty($curzone) && !preg_match("/captiveportal-{$curzone}/i", $database))
+ if (($curcat == "captiveportal") && !empty($curzone) && !preg_match("/captiveportal-{$curzone}/i", $database))
continue;
$optionc = explode("-", $database);
@@ -571,7 +571,7 @@ function get_dates($curperiod, $graph) {
if(! preg_match("/($curcat)/i", $curdatabase))
continue;
- if (!empty($curzone) && !preg_match("/captiveportal-{$curzone}/i", $curdatabase))
+ if (($curcat == "captiveportal") && !empty($curzone) && !preg_match("/captiveportal-{$curzone}/i", $curdatabase))
continue;
$optionc = explode("-", $curdatabase);
OpenPOWER on IntegriCloud