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:
parent
163d18c4bb
commit
092d63bd2e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user