From 100284825524006c87e72dfd1f713e44a2d88510 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Wed, 10 Jul 2013 10:38:22 +0200 Subject: [PATCH] fixed a bug introduced with the new option --- monitorix.cgi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/monitorix.cgi b/monitorix.cgi index c31d81b..a5a62fd 100755 --- a/monitorix.cgi +++ b/monitorix.cgi @@ -247,10 +247,14 @@ if(lc($config{httpd_builtin}->{enabled} ne "y")) { $colors{graph_colors} = (); $colors{warning_color} = "--color=CANVAS#880000"; +# keep backwards compatibility for v3.2.1 and less +if(ref($config{theme}) ne "HASH") { + delete($config{theme}); +} + if(!$config{theme}->{$color}) { $color = "white"; - # keep backwards compatibility for v3.2.1 and less $config{theme}->{$color}->{main_bg} = "FFFFFF"; $config{theme}->{$color}->{main_fg} = "000000"; $config{theme}->{$color}->{title_bg} = "777777";