2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

fhem.pl: fix eventMap off:0 (Forum #40113)

git-svn-id: https://svn.fhem.de/fhem/trunk@9091 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-08-18 06:07:48 +00:00
parent 86c5755d7f
commit bc39637be4

View File

@ -3382,7 +3382,7 @@ ReplaceEventMap($$$)
return $str if($dir && !$em);
return @{$str} if(!$dir && (!$em || int(@{$str}) < 2 ||
!$str->[1] || $str->[1] eq "?"));
!defined($str->[1]) || $str->[1] eq "?"));
return ReplaceEventMap2($dev, $str, $dir, $em) if($em =~ m/^{.*}$/);
my @emList = attrSplit($em);