2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

fhem.pl: remove strict argument checking from IsWe (Forum #98583)

git-svn-id: https://svn.fhem.de/fhem/trunk@19754 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-07-01 06:50:26 +00:00
parent 9a06771aa9
commit e7c077a0b5

View File

@ -5960,7 +5960,7 @@ IsWe(;$$)
{ {
my ($when, $wday) = @_; my ($when, $wday) = @_;
$wday = (localtime(gettimeofday()))[6] if(!defined($wday)); $wday = (localtime(gettimeofday()))[6] if(!defined($wday));
$when = "state" if(!$when || $when !~ m/^(yesterday|tomorrow)$/); $when = "state" if(!$when);
my ($we, $wf); my ($we, $wf);
foreach my $h2we (split(",", AttrVal("global", "holiday2we", ""))) { foreach my $h2we (split(",", AttrVal("global", "holiday2we", ""))) {