98_SVG.pm: check for $defs{""} (Forum #32427)

git-svn-id: https://svn.fhem.de/fhem/trunk@7632 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-01-19 19:56:06 +00:00
parent f8643d2851
commit fe7c2da2d0

View File

@@ -655,7 +655,7 @@ SVG_readgplotfile($$$)
if($l =~ m/^#([^ ]*) (.*)$/) {
if($1 eq $ldType) {
$src = $ld; $plotfn = $2;
} elsif($defs{$1}) {
} elsif($1 && $defs{$1}) {
$src = $1; $plotfn = $2;
}
} elsif($l =~ "^plot" || $plot) {