From 86183dc1e6af78ad87c0a42bf7e7c055cd2083ce Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 28 Aug 2017 15:18:21 +0200 Subject: [PATCH] =?utf8?q?CustomVariables:=20Caching=20bei=20nicht=20exist?= =?utf8?q?ierenden=20CVars=20f=C3=BCr=20ein=20Modul=20gefixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Helper/CustomVariables.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Helper/CustomVariables.pm b/SL/DB/Helper/CustomVariables.pm index 78edce5e3..a82397c5e 100644 --- a/SL/DB/Helper/CustomVariables.pm +++ b/SL/DB/Helper/CustomVariables.pm @@ -182,7 +182,7 @@ sub _all_configs { } return $params{module} && !ref $params{module} ? $cache->{module}{$params{module}} - : $params{module} && ref $params{module} ? [ map { @{ $cache->{module}{$_} } } @{ $params{module} } ] + : $params{module} && ref $params{module} ? [ map { @{ $cache->{module}{$_} // [] } } @{ $params{module} } ] : $cache->{all}; } -- 2.20.1