diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-01-05 23:25:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-01-05 23:25:37 +0000 |
commit | 15ae84f21cac2fbdbf220a5054845504b1347252 (patch) | |
tree | 2ffdb5d5ad7b596c3c79e671730c4ff1567b5977 /packages | |
parent | 68b0743df2fcf8d4b8796717680540c55549e60f (diff) | |
download | pfsense-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.php | 2 |
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> <br>"; } +} ?> </form> |