57_Calendar: eliminate warning (forum #122850)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25029 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2021-09-28 15:32:14 +00:00
parent 12e0857604
commit 8312a7bf2d

View File

@ -2088,7 +2088,7 @@ sub Calendar_Get($@) {
} else {
$d1= $2;
$d2= $d1;
if($4 ne '') {
if(defined($4) and ($4 ne '')) {
$d2= $4;
}
($d1,$d2)= ($d2,$d1) if($d1> $d2);