From 38232b3843439021d3d40a51bd5edf478c9dc13f Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 24 Nov 2015 18:40:02 +0000 Subject: [PATCH] fhem.pl: fix $we (Forum #44621) git-svn-id: https://svn.fhem.de/fhem/trunk@9993 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 97d2f0247..041c1f1b7 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -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"); } }