mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
fhem.pl: json2nameValue: fix parsing 0 in array (Forum #112899)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22403 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cc65c222a0
commit
f5dd1914e2
2
fhem.pl
2
fhem.pl
@ -5232,7 +5232,7 @@ json2nameValue($;$$)
|
|||||||
return ($err,undef) if($err);
|
return ($err,undef) if($err);
|
||||||
my $idx = 1;
|
my $idx = 1;
|
||||||
$val =~ s/^\s*//;
|
$val =~ s/^\s*//;
|
||||||
while($val) {
|
while(defined($val) && $val ne "") {
|
||||||
($err,$val) = eObj($ret, $map,
|
($err,$val) = eObj($ret, $map,
|
||||||
$firstLevel ? "$prefix$idx" : $name."_$idx",
|
$firstLevel ? "$prefix$idx" : $name."_$idx",
|
||||||
$val, $val, $prefix);
|
$val, $val, $prefix);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user