From 55d2a45891dc4155ed8f5e50edf6269a45b7e777 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Fri, 16 May 2014 20:36:31 +0000 Subject: [PATCH] fhem.pl: fix holiday eventMap -> $we bug (forum #168508) git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5878 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 908ceee68..d3189b4cc 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -862,7 +862,10 @@ AnalyzePerlCommand($$) my $we = (($wday==0 || $wday==6) ? 1 : 0); if(!$we) { my $h2we = $attr{global}{holiday2we}; - $we = 1 if($h2we && $value{$h2we} && $value{$h2we} ne "none"); + if($h2we && $value{$h2we}) { + my ($a, $b) = ReplaceEventMap($h2we, [$h2we, $value{$h2we}], 0); + $we = 1 if($b ne "none"); + } } $month++; $year+=1900;