Avoid unitialized message if the internal variable is undefined

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2448 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2013-01-07 19:49:55 +00:00
parent fc0d59b02e
commit 67d16f92af

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}));