diff options
Diffstat (limited to '')
-rw-r--r-- | host.php | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -15,9 +15,7 @@ printf("<fieldset id=\"%s\">", $host); | |||
15 | printf("<legend>%s</legend>", $host); | 15 | printf("<legend>%s</legend>", $host); |
16 | 16 | ||
17 | 17 | ||
18 | $plugins = collectd_plugins($host); | 18 | if (!$plugins = collectd_plugins($host)) { |
19 | |||
20 | if(!$plugins) { | ||
21 | echo "Unknown host\n"; | 19 | echo "Unknown host\n"; |
22 | return false; | 20 | return false; |
23 | } | 21 | } |