statistics2.cgi: ignore model if not scalar

git-svn-id: https://svn.fhem.de/fhem/trunk@14773 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2017-07-23 18:21:45 +00:00
parent e85dd8dac7
commit fad706a2b8

View File

@@ -227,6 +227,7 @@ sub doAggregate() {
while ( my ($model, $count) = each( %{$decoded->{$type}}) ) {
next if($model eq "noModel");
$countAll{'modules'}{$type}{'definitions'} += $count;
next if(ref($model) eq "HASH");
next if($model eq "migratedData");
$countAll{'models'}{$type}{$model}{'definitions'} += $count;
$countAll{'models'}{$type}{$model}{'installations'} += 1;