mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
Bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk@5921 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6d844f0ad2
commit
71315f8c46
@ -232,7 +232,7 @@ sub Dashboard_Get($@) {
|
||||
my $name = $hash->{NAME};
|
||||
my $attrdata = $attr{$name};
|
||||
if ($attrdata) {
|
||||
my $x = keys $attrdata;
|
||||
my $x = keys %$attrdata;
|
||||
my $i = 0;
|
||||
my @splitattr;
|
||||
$res .= "{\n";
|
||||
@ -246,7 +246,7 @@ sub Dashboard_Get($@) {
|
||||
$res .= " \"icondirs\": \"$iconDirs\"";
|
||||
|
||||
$res .= ($i != $x) ? ",\n" : "\n";
|
||||
foreach my $attr (sort keys $attrdata) {
|
||||
foreach my $attr (sort keys %$attrdata) {
|
||||
$i++;
|
||||
@splitattr = split("@", $attrdata->{$attr});
|
||||
if (@splitattr == 2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user