From 745eb8fbef1bb4613606043f699982d9c4f8398f Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Fri, 28 Jun 2019 09:50:49 +0000 Subject: [PATCH] FHEM/95_holiday.pm: Remove warning, filter double entries (Forum #101815) git-svn-id: https://svn.fhem.de/fhem/trunk@19729 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/95_holiday.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/95_holiday.pm b/fhem/FHEM/95_holiday.pm index b4a486394..9f3dc8675 100644 --- a/fhem/FHEM/95_holiday.pm +++ b/fhem/FHEM/95_holiday.pm @@ -59,7 +59,7 @@ holiday_refresh($;$$) $fordate = sprintf("%02d-%02d", $lt[4]+1, $lt[3]); @fd = @lt; } else { - $fordate !~ m/^((\d{4})-)?([01]\d)-([0-3]\d)$/; # fmt is already checked + $fordate =~ m/^((\d{4})-)?([01]\d)-([0-3]\d)$/; # fmt is already checked my ($m,$d) = ($3,$4); $fordate = "$m-$d"; $lt[5] = $2-1900 if($2); @@ -216,7 +216,7 @@ holiday_refresh($;$$) $found = $args[3]; } } - push @foundList, $found if($found); + push @foundList, $found if($found && !grep(m/^$found$/,@foundList)); }