From 03a451a11f3a662337d13f53e4454db8e3a1d084 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Fri, 19 Jun 2015 11:19:03 +0000 Subject: [PATCH] 33_readingsGroup.pm: fixed warning git-svn-id: https://svn.fhem.de/fhem/trunk@8775 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/33_readingsGroup.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index 24ee221ec..d8076266b 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -558,7 +558,7 @@ readingsGroup_value2html($$$$$$$$$) if( !$values ) { my %extPage = (); my ($allSets, undef, undef) = FW_devState($name, $room, \%extPage); - $allSets = getAllAttr($name) if( $type eq 'attr' ); + $allSets = getAllAttr($name) if( $type && $type eq 'attr' ); my ($set) = split( ' ', $set, 2 ); if( $allSets && $allSets =~ m/\b$set:([^ ]*)/) { $values = $1; @@ -585,7 +585,7 @@ readingsGroup_value2html($$$$$$$$$) } if( $htmlTxt ) { - if( $type eq 'attr' ) { + if( $type && $type eq 'attr' ) { my $current = AttrVal( $name, $n, 'unknown' ); $htmlTxt =~ s/cmd=/type='attr' cmd=/; $htmlTxt =~ s/current='[^']*'/current='$current'/;