diff options
| author | Pim van den Berg | 2012-12-28 20:13:08 +0100 |
|---|---|---|
| committer | Pim van den Berg | 2012-12-28 20:13:08 +0100 |
| commit | 1e47ade7e95bf69a6e34613b05416b4b2f5b372c (patch) | |
| tree | 70a08ffce2aff483a44e385e16158fc1fdf2b480 /host.php | |
| parent | resolve php warning/notices when plugin doesn't exist (diff) | |
| download | apt-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.php | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -29,8 +29,10 @@ plugins_list($host, $CONFIG['overview'], $plugins, $selected_plugins); | |||
| 29 | 29 | ||
| 30 | echo '<div class="graphs">'; | 30 | echo '<div class="graphs">'; |
| 31 | foreach ($selected_plugins as $selected_plugin) { | 31 | foreach ($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 | } |
| 35 | echo '</div>'; | 37 | echo '</div>'; |
| 36 | 38 | ||
