98_DOIF.pm: Value($h2we) adapted

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10028 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
damian-s
2015-11-28 11:12:13 +00:00
parent 3a0bf1e251
commit b547d97c24

View File

@@ -624,7 +624,10 @@ DOIF_we($) {
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");
}
}
return $we;
}