2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

statistics2.cgi: ignore invalid/missing perl versions

git-svn-id: https://svn.fhem.de/fhem/trunk@14769 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2017-07-23 09:25:07 +00:00
parent c25b400b6b
commit a96d632d5b

View File

@ -202,7 +202,7 @@ sub doAggregate() {
$res =~ s/^v//; $res =~ s/^v//;
$res =~ /(^\d*\.\d*)/; $res =~ /(^\d*\.\d*)/;
$res = $1; $res = $1;
$countAll{'system'}{'perl'}{$res}++; $countAll{'system'}{'perl'}{$res}++ if($res);
if (defined($decoded->{'system'}{'revdate'})){ if (defined($decoded->{'system'}{'revdate'})){
$res = $decoded->{'system'}{'revdate'}; $res = $decoded->{'system'}{'revdate'};