2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-13 17:26:34 +00:00

Avoid unitialized message

git-svn-id: https://svn.fhem.de/fhem/trunk@413 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2009-07-25 15:32:13 +00:00
parent 7f84c62dc4
commit 9adab37920
2 changed files with 4 additions and 1 deletions

View File

@ -516,3 +516,4 @@
- bugfix: Reattached corrupted CUL device caused uninitialized message
- bugfix: CUL/HMS changes, HMS cleanup
- bugfix: EM/EMWZ/EMGZ set changed to work in FHEMWEB
- bugfix: Avoid unitialized in xmllist for corrupt readings (reporter: Boris)

View File

@ -76,9 +76,11 @@ CommandXmlList($$)
my $r = $p->{READINGS};
if($r) {
foreach my $c (sort keys %{$r}) {
my $h = $r->{$c};
next if(!$h->{VAL} || !$h->{TIME});
$str .=
sprintf("\t\t\t<STATE key=\"%s\" value=\"%s\" measured=\"%s\"/>\n",
XmlEscape($c), XmlEscape($r->{$c}{VAL}), $r->{$c}{TIME});
XmlEscape($c), XmlEscape($h->{VAL}), $h->{TIME});
}
}
$str .= "\t\t</$t>\n";