2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

fhem.pl: check for undef entries in list (Forum #29963)

git-svn-id: https://svn.fhem.de/fhem/trunk@12719 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-12-06 07:03:42 +00:00
parent 69dcc4d176
commit ece20d4755

View File

@ -2168,7 +2168,7 @@ PrintHash($$)
} elsif(ref($h->{$c}) eq "ARRAY") {
$sstr .= sprintf("%*s %s:\n", $lev, " ", $c);
foreach my $v (@{$h->{$c}}) {
$sstr .= sprintf("%*s %s\n", $lev+2, " ", $v);
$sstr .= sprintf("%*s %s\n", $lev+2, " ", defined($v) ? $v:"undef");
}
}
} else {