2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

fhem.pl: make AttrVal parameter check identical to ReadingsVal (Forum #38276)

git-svn-id: https://svn.fhem.de/fhem/trunk@13968 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-04-11 09:35:45 +00:00
parent fa36aa285a
commit 1ba433c9f0

View File

@ -4032,7 +4032,7 @@ sub
AttrVal($$$)
{
my ($d,$n,$default) = @_;
return $attr{$d}{$n} if($d && defined($attr{$d}) && defined($attr{$d}{$n}));
return $attr{$d}{$n} if(defined($attr{$d}) && defined($attr{$d}{$n}));
return $default;
}