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

fhem.pl: fix holiday eventMap -> $we bug (forum #168508)

git-svn-id: https://svn.fhem.de/fhem/trunk@5878 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-05-16 20:36:31 +00:00
parent 163d18c4bb
commit 092d63bd2e

View File

@ -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;