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:
parent
7f84c62dc4
commit
9adab37920
@ -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)
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user