remove 'Use of uninitialized value text_when_all' message

This commit is contained in:
Jordi Sanfeliu 2020-10-26 11:57:30 +01:00
parent d3c775fa4e
commit 15b15411c7
1 changed files with 1 additions and 1 deletions

View File

@ -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) {