mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +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:
parent
fa36aa285a
commit
1ba433c9f0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user