From 52873388d1667fef594342c353aceea94c48b12d Mon Sep 17 00:00:00 2001 From: martinp876 <> Date: Fri, 12 Jun 2020 12:35:22 +0000 Subject: [PATCH] HMInfo:Bug-fix for array handling - minor git-svn-id: https://svn.fhem.de/fhem/trunk@22171 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_HMinfo.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/98_HMinfo.pm b/fhem/FHEM/98_HMinfo.pm index 4381e7e79..a432ba14d 100644 --- a/fhem/FHEM/98_HMinfo.pm +++ b/fhem/FHEM/98_HMinfo.pm @@ -850,7 +850,8 @@ sub HMinfo_tempListTmplView() { ############################################### my @tNfound = (); # templates found in files push @tNfound, @{$defs{$n}{helper}{weekplanList}} if (defined $defs{$n}{helper}{weekplanList} - && ref($defs{$n}{helper}{weekplanList}) eq 'ARRAY'); + && ref($defs{$n}{helper}{weekplanList}) eq 'ARRAY' + && 0 < scalar(@{$defs{$n}{helper}{weekplanList}})); #################################################### my $ret = "";