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 0f1ecbdd88
commit 06021e8f8e

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") {