]> wagnertech.de Git - kivitendo-erp.git/commitdiff
CustomVariables: Caching bei nicht existierenden CVars für ein Modul gefixt
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 28 Aug 2017 13:18:21 +0000 (15:18 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 28 Aug 2017 13:19:02 +0000 (15:19 +0200)
SL/DB/Helper/CustomVariables.pm

index 78edce5e356ae9321529ade0d6e5828eab767f44..a82397c5ec5b4d4f9113db1304dc9614178377f7 100644 (file)
@@ -182,7 +182,7 @@ sub _all_configs {
   }
 
   return $params{module} && !ref $params{module} ? $cache->{module}{$params{module}}
   }
 
   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};
 }
 
        : $cache->{all};
 }