mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 02:10:32 +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:
parent
4206c5626b
commit
d4f87250a3
@ -719,6 +719,7 @@ FW_makeTable($$@)
|
|||||||
foreach my $n (sort keys %{$hash}) {
|
foreach my $n (sort keys %{$hash}) {
|
||||||
next if(!$si && $n =~ m/^\./); # Skip "hidden" Values
|
next if(!$si && $n =~ m/^\./); # Skip "hidden" Values
|
||||||
my $val = $hash->{$n};
|
my $val = $hash->{$n};
|
||||||
|
$val = "" if(!defined($val));
|
||||||
|
|
||||||
$val = $hash->{$n}{NAME} # Exception
|
$val = $hash->{$n}{NAME} # Exception
|
||||||
if($n eq "IODev" && ref($val) eq "HASH" && defined($hash->{$n}{NAME}));
|
if($n eq "IODev" && ref($val) eq "HASH" && defined($hash->{$n}{NAME}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user