From 67fbdebe2d7c000e51b84d2f3eba8a9a0cd3db26 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 28 Feb 2017 12:40:14 +0100 Subject: [PATCH] =?utf8?q?ActionBar:=20SL::Layout::get:=20bei=20nicht=20ex?= =?utf8?q?istierendem=20Sub-Layout=20leere=20Liste=20zur=C3=BCckgeben?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Layout/Base.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Layout/Base.pm b/SL/Layout/Base.pm index ba2db6017..df9c00852 100644 --- a/SL/Layout/Base.pm +++ b/SL/Layout/Base.pm @@ -38,7 +38,7 @@ sub init_sublayouts_by_name { sub get { $_[0]->sub_layouts; - $_[0]->sub_layouts_by_name->{$_[1]} + return grep { $_ } ($_[0]->sub_layouts_by_name->{$_[1]}); } sub init_auto_reload_resources_param { -- 2.20.1