aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/host.php
diff options
context:
space:
mode:
authorPim van den Berg2012-12-28 20:13:08 +0100
committerPim van den Berg2012-12-28 20:13:08 +0100
commit1e47ade7e95bf69a6e34613b05416b4b2f5b372c (patch)
tree70a08ffce2aff483a44e385e16158fc1fdf2b480 /host.php
parentresolve php warning/notices when plugin doesn't exist (diff)
downloadapt-panopticon_cgp-1e47ade7e95bf69a6e34613b05416b4b2f5b372c.zip
apt-panopticon_cgp-1e47ade7e95bf69a6e34613b05416b4b2f5b372c.tar.gz
apt-panopticon_cgp-1e47ade7e95bf69a6e34613b05416b4b2f5b372c.tar.bz2
apt-panopticon_cgp-1e47ade7e95bf69a6e34613b05416b4b2f5b372c.tar.xz
don't show plugins the host doesn't have
Diffstat (limited to '')
-rw-r--r--host.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/host.php b/host.php
index bd7209a..42121ea 100644
--- a/host.php
+++ b/host.php
@@ -29,8 +29,10 @@ plugins_list($host, $CONFIG['overview'], $plugins, $selected_plugins);
29 29
30echo '<div class="graphs">'; 30echo '<div class="graphs">';
31foreach ($selected_plugins as $selected_plugin) { 31foreach ($selected_plugins as $selected_plugin) {
32 plugin_header($host, $selected_plugin); 32 if (in_array($selected_plugin, $plugins)) {
33 graphs_from_plugin($host, $selected_plugin); 33 plugin_header($host, $selected_plugin);
34 graphs_from_plugin($host, $selected_plugin);
35 }
34} 36}
35echo '</div>'; 37echo '</div>';
36 38