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:
parent
9a06771aa9
commit
e7c077a0b5
@ -5960,7 +5960,7 @@ IsWe(;$$)
|
||||
{
|
||||
my ($when, $wday) = @_;
|
||||
$wday = (localtime(gettimeofday()))[6] if(!defined($wday));
|
||||
$when = "state" if(!$when || $when !~ m/^(yesterday|tomorrow)$/);
|
||||
$when = "state" if(!$when);
|
||||
|
||||
my ($we, $wf);
|
||||
foreach my $h2we (split(",", AttrVal("global", "holiday2we", ""))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user