fhem.pl: do not report error if the input is empty (Forum #122048)

git-svn-id: https://svn.fhem.de/fhem/trunk@24776 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2021-07-19 13:16:44 +00:00
parent 2adc2d99e8
commit 41fe9bbf31

View File

@@ -5265,6 +5265,7 @@ sub
json2nameValue($;$$$$)
{
my ($in, $prefix, $map, $filter, $negFilter) = @_;
return if(!$in); # 122048
$prefix = "" if(!defined($prefix));
my %ret;