fhem.pl: fix $we (Forum #44621)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9993 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-11-24 18:40:02 +00:00
parent e6c54241d3
commit df23d150e2

View File

@@ -950,8 +950,8 @@ AnalyzePerlCommand($$;$)
my $we = (($wday==0 || $wday==6) ? 1 : 0);
if(!$we) {
my $h2we = $attr{global}{holiday2we};
if($h2we && $value{$h2we}) {
my ($a, $b) = ReplaceEventMap($h2we, [$h2we, $value{$h2we}], 0);
if($h2we && Value($h2we)) {
my ($a, $b) = ReplaceEventMap($h2we, [$h2we, Value($h2we)], 0);
$we = 1 if($b ne "none");
}
}