mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +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);
|
my $we = (($wday==0 || $wday==6) ? 1 : 0);
|
||||||
if(!$we) {
|
if(!$we) {
|
||||||
my $h2we = $attr{global}{holiday2we};
|
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++;
|
$month++;
|
||||||
$year+=1900;
|
$year+=1900;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user