From 15b15411c708073c5dbc58057219605cedbdfa62 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Mon, 26 Oct 2020 11:57:30 +0100 Subject: [PATCH] remove 'Use of uninitialized value text_when_all' message --- monitorix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitorix b/monitorix index eaa007f..bdba51c 100755 --- a/monitorix +++ b/monitorix @@ -163,7 +163,7 @@ sub create_index { # The following small JavaScript function is intended to avoid to select to view # accidentally (unless explicitly selected by the user) a huge amount of remote # images that will hang the browser for a while. - $text_when_all = $config{multihost}->{default_option_when_all}; + $text_when_all = $config{multihost}->{default_option_when_all} || 0; my @match = grep { $config{graphs}{$_} eq $text_when_all } keys %{$config{graphs}}; $value_when_all = $match[0] || ""; if(!$value_when_all) {