From 1ec1ac396e8158886f302ac1b1fb20655e5f6b9f Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Fri, 28 Dec 2012 19:52:04 +0100 Subject: resolve php warning/notices when plugin doesn't exist For example when a non existing plugin is defined in $CONFIG['overview'] it causes a lot of php warnings/notices. --- inc/html.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'inc/html.inc.php') diff --git a/inc/html.inc.php b/inc/html.inc.php index 20a10ed..3ad2439 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -58,10 +58,14 @@ EOT; } function plugin_header($host, $plugin) { + global $CONFIG; + return printf("

%s

\n", $CONFIG['weburl'], $host, $plugin, $plugin); } function plugins_list($host, $overview_plugins, $other_plugins, $selected_plugins = array()) { + global $CONFIG; + echo '
'; echo '

Plugins

'; echo '