2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 01:06:04 +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:
rudolfkoenig 2015-04-19 09:58:13 +00:00
parent 1603995460
commit 2cbbed975f

View File

@ -91,11 +91,11 @@ CommandJsonList2($$)
for(my $i1 = 0; $i1 < int(@d); $i1++) {
my $d = $d[$i1];
next if(IsIgnored($d));
$cnt++;
my $h = $defs{$d};
my $n = $h->{NAME};
next if(!$h || !$n);
$cnt++;
$ret .= " {\n";
$ret .= " \"Name\":\"".JsonList2_Escape($n)."\",\n";