2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

Avoid unitialized message if the internal variable is undefined

git-svn-id: https://svn.fhem.de/fhem/trunk@2448 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-01-07 19:49:55 +00:00
parent 4206c5626b
commit d4f87250a3

View File

@ -719,6 +719,7 @@ FW_makeTable($$@)
foreach my $n (sort keys %{$hash}) {
next if(!$si && $n =~ m/^\./); # Skip "hidden" Values
my $val = $hash->{$n};
$val = "" if(!defined($val));
$val = $hash->{$n}{NAME} # Exception
if($n eq "IODev" && ref($val) eq "HASH" && defined($hash->{$n}{NAME}));