mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 07:16:03 +00:00
98_JsonList2.pm: Minor correction to the counter (Forum #36450)
git-svn-id: https://svn.fhem.de/fhem/trunk@8454 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1603995460
commit
2cbbed975f
@ -91,11 +91,11 @@ CommandJsonList2($$)
|
|||||||
for(my $i1 = 0; $i1 < int(@d); $i1++) {
|
for(my $i1 = 0; $i1 < int(@d); $i1++) {
|
||||||
my $d = $d[$i1];
|
my $d = $d[$i1];
|
||||||
next if(IsIgnored($d));
|
next if(IsIgnored($d));
|
||||||
$cnt++;
|
|
||||||
|
|
||||||
my $h = $defs{$d};
|
my $h = $defs{$d};
|
||||||
my $n = $h->{NAME};
|
my $n = $h->{NAME};
|
||||||
next if(!$h || !$n);
|
next if(!$h || !$n);
|
||||||
|
$cnt++;
|
||||||
|
|
||||||
$ret .= " {\n";
|
$ret .= " {\n";
|
||||||
$ret .= " \"Name\":\"".JsonList2_Escape($n)."\",\n";
|
$ret .= " \"Name\":\"".JsonList2_Escape($n)."\",\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user