2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 12:58:13 +00:00

57_Calendar: suppress warning in case of empty result list of get ... find ...

git-svn-id: https://svn.fhem.de/fhem/trunk@8687 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2015-06-04 13:29:42 +00:00
parent bd5aa07d1b
commit 33f83d96a3

View File

@ -1069,6 +1069,7 @@ sub Calendar_Get($@) {
$keep= $#texts+1 if($keep> $#texts);
splice @texts, $keep if($keep>= 0);
}
return "" if($#texts<0);
return join("\n", @texts);
} elsif($cmd eq "find") {