From 1fbcd0db6ef59f966caca6e5ba9e9d2bd58a06a5 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 27 Feb 2017 16:49:07 +0100 Subject: [PATCH] ActionBar: Verwendung undefinierter Werte in Tests vermeiden --- SL/Layout/Javascript.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Layout/Javascript.pm b/SL/Layout/Javascript.pm index 3b170a46f..85454c4ee 100644 --- a/SL/Layout/Javascript.pm +++ b/SL/Layout/Javascript.pm @@ -55,7 +55,7 @@ sub pre_content { icon_path => sub { my $simg = "image/icons/svg/$_[0].svg"; my $pimg="image/icons/16x16/$_[0].png"; -f $simg ? $simg : ( -f $pimg ? $pimg : ()) }, max_width => sub { 10 * max map { length $::locale->text($_->{name}) } @{ $_[0]{children} || [] } }, ) . - $_[0]->sub_layouts_by_name->{actionbar}->pre_content; + ($_[0]->sub_layouts_by_name->{actionbar}->pre_content // ''); } sub stylesheets { -- 2.20.1