mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
98_SVG.pm: fix WARNING (Forum #119925)
git-svn-id: https://svn.fhem.de/fhem/trunk@24097 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a29768a5c6
commit
67675e8438
@ -169,7 +169,8 @@ sub
|
||||
SVG_Attr($$$$)
|
||||
{
|
||||
my ($parent, $dev, $attr, $default) = @_;
|
||||
my $val = AttrVal($dev, $attr, undef);
|
||||
my $val;
|
||||
$val = AttrVal($dev, $attr, undef) if($dev);
|
||||
return $val if(defined($val));
|
||||
return AttrVal($parent, $attr, $default);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user