2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 01:46:08 +00:00

98_SVG.pm: fix warning if plotReplace is missing (Forum #69766)

git-svn-id: https://svn.fhem.de/fhem/trunk@13841 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-03-29 10:28:30 +00:00
parent eab055554f
commit 3e7a518628

View File

@ -759,9 +759,11 @@ SVG_readgplotfile($$$)
my $specval = AttrVal($wl, "plotfunction", undef);
my $plotReplace = AttrVal($wl, "plotReplace", undef);
my ($list, $pr) = parseParams($plotReplace,"\\s"," ") if($plotReplace);
my $pr;
(undef, $pr) = parseParams($plotReplace,"\\s"," ") if($plotReplace);
my $prSubst = sub($)
{
return "%$_[0]%" if(!$pr);
my $v = $pr->{$_[0]};
return "%$_[0]%" if(!$v);
if($v =~ m/^{.*}$/) {