mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 19:36:02 +00:00
fhem.pl: fix disabledForIntervals 0 bug
git-svn-id: https://svn.fhem.de/fhem/trunk@14152 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4502984312
commit
1d79808031
@ -814,7 +814,7 @@ IsDisabled($)
|
||||
my $dhms = sprintf("%s\@%02d:%02d:%02d", $wday, $hour, $min, $sec);
|
||||
foreach my $ft (split(" ", $dfi)) {
|
||||
my ($from, $to) = split("-", $ft);
|
||||
if($from && $to) {
|
||||
if(defined($from) && defined($to)) {
|
||||
$from = "$wday\@$from" if(index($from,"@") < 0);
|
||||
$to = "$wday\@$to" if(index($to, "@") < 0);
|
||||
return 2 if($from le $dhms && $dhms le $to);
|
||||
|
Loading…
x
Reference in New Issue
Block a user