aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-05 23:25:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-05 23:25:37 +0000
commit15ae84f21cac2fbdbf220a5054845504b1347252 (patch)
tree2ffdb5d5ad7b596c3c79e671730c4ff1567b5977 /packages
parent68b0743df2fcf8d4b8796717680540c55549e60f (diff)
downloadpfsense-packages-15ae84f21cac2fbdbf220a5054845504b1347252.tar.gz
pfsense-packages-15ae84f21cac2fbdbf220a5054845504b1347252.tar.bz2
pfsense-packages-15ae84f21cac2fbdbf220a5054845504b1347252.zip
Do not loop $config['installedpackages']['pfstat']['config'] if its not defined
Diffstat (limited to 'packages')
-rw-r--r--packages/pfstat.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/pfstat.php b/packages/pfstat.php
index 2791e3ae..5ef1ed38 100644
--- a/packages/pfstat.php
+++ b/packages/pfstat.php
@@ -53,6 +53,7 @@ include("fbegin.inc");
<?php if ($savemsg) print_info_box($savemsg); ?>
<?php
+if($config['installedpackages']['pfstat']['config'] <> "") {
foreach($config['installedpackages']['pfstat']['config'] as $graph) {
echo "<table BORDERCOLOR=\"#990000\" width=\"100%\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\">";
echo "<tr bgcolor='#990000'><td><center><font color='white'>" . $graph['graphname'] . "</td></tr>\n";
@@ -64,6 +65,7 @@ include("fbegin.inc");
echo "</td></tr>\n";
echo "</table>&nbsp;<br>";
}
+}
?>
</form>