From 97038f49b8d4aa9ac38a32c8bad5ec4cfd00afce Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 18 Dec 2019 09:04:38 +0100 Subject: [PATCH] Bug 24215: Do not always display an empty entry Signed-off-by: Jonathan Druart --- about.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/about.pl b/about.pl index b9c5c5fe2d..dc6380099b 100755 --- a/about.pl +++ b/about.pl @@ -486,7 +486,7 @@ $template->param( 'bad_yaml_prefs' => \@bad_yaml_prefs ) if @bad_yaml_prefs; $valid_relationships{ _bad_data } = 1; # we handle this case in another way my $wrong_relationships = [ grep { !$valid_relationships{ $_->[0] } } @{$existing_relationships} ]; - if ( $wrong_relationships or $bad_relationships_count ) { + if ( @$wrong_relationships or $bad_relationships_count ) { $template->param( warnRelationships => 1, -- 2.11.0