fhem.pl: fix duplicate events by NOTIFYDEV (Forum #57971)

git-svn-id: https://svn.fhem.de/fhem/trunk@12192 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2016-09-22 07:44:52 +00:00
parent c756b79efc
commit f9e9b00952

View File

@@ -4383,7 +4383,8 @@ createNtfyHash()
foreach my $d (@ntfyList) {
if($defs{$d}{NOTIFYDEV}) {
foreach my $nd (split(",",$defs{$d}{NOTIFYDEV})) {
push @{$ntfyHash{$nd}}, $d;
my $arr = $ntfyHash{$nd};
push @{$arr}, $d if(!grep /^$d$/, @{$arr});
}
} else {
foreach my $nd (keys %ntfyHash) {