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

57_Calendar: avoid some warnings

git-svn-id: https://svn.fhem.de/fhem/trunk@13328 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2017-02-04 07:51:36 +00:00
parent d051d71b0c
commit 4b288a0592
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- changed: 57_Calendar: avoid some warnings
- bufix: 00_MQTT: fixed delete MQTT_DEVICE
- update: 98_DOIFtools: suppress lookup windows in DOIF or DOIFtools
by attribute DOIFtoolsNoLookUp and DOIFtoolsNoLookUpInDOIF

View File

@ -2054,8 +2054,8 @@ sub Calendar_GetEvents($$$$) {
if(defined($filterref)) {
next unless(&$filterref($event, $param));
}
if(defined($t1)) { next if($event->end() < $t1); }
if(defined($t2)) { next if($event->start() > $t2); }
if(defined($t1)) { next if(defined($event->end()) && $event->end() < $t1); }
if(defined($t2)) { next if(defined($event->start()) && $event->start() > $t2); }
push @result, $event;
}
}