33_readingsGroup.pm: fixed uninitialized value warning

git-svn-id: https://svn.fhem.de/fhem/trunk@7479 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2015-01-09 12:00:47 +00:00
parent 9afdfc197e
commit cbbfc62adb

View File

@@ -96,7 +96,7 @@ readingsGroup_updateDevices($;$)
} else {
my @device = split(":", $param);
if( $device[1] =~ m/^FILTER=/ ) {
if( $device[1] && $device[1] =~ m/^FILTER=/ ) {
my $devspec = shift(@device);
while( @device && $device[0] =~ m/^FILTER=/ ) {
$devspec .= ":";