summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
authorScott Dale <sdale@pfsense.org>2007-04-25 02:47:54 +0000
committerScott Dale <sdale@pfsense.org>2007-04-25 02:47:54 +0000
commit78ee2cf8c2b128dc4cea09b6ae0a6ee98d5e7826 (patch)
tree8a3f92c8807bd8293d55d535d67f86dafdb5bac1 /usr/local/www/index.php
parent5db160dd040eeb38729caaf2a3ce85467990d3c0 (diff)
downloadpfsense-78ee2cf8c2b128dc4cea09b6ae0a6ee98d5e7826.zip
pfsense-78ee2cf8c2b128dc4cea09b6ae0a6ee98d5e7826.tar.gz
verify interface is enabled before drawing graph
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-xusr/local/www/index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 52c9232..2aa551d 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -286,6 +286,7 @@ echo $jscriptstr;
$ifinfo = get_interface_info($ifdescr);
$ifnum = convert_friendly_interface_to_real_interface_name($ifname);
+ if ($ifinfo['status'] != "down"){
?>
<tr>
<td colspan="2" class="listtopic">Current <?=$ifname;?> Traffic</td>
@@ -311,7 +312,8 @@ echo $jscriptstr;
<? } ?>
</td>
</tr><tr><td>&nbsp;</td></tr>
- <? } ?>
+ <? }
+ }?>
</tbody>
</table><br>
OpenPOWER on IntegriCloud