mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
SVG: fix creating empty defs when called from FileLink summary entry
git-svn-id: https://svn.fhem.de/fhem/trunk@4073 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
53099369a5
commit
24f2a90669
@ -447,7 +447,7 @@ SVG_readgplotfile($$)
|
||||
my (@filelog, @data, $plot);
|
||||
|
||||
my $ldType = $defs{$defs{$wl}{LOGDEVICE}}{TYPE}
|
||||
if($defs{$wl}{LOGDEVICE} && $defs{$defs{$wl}{LOGDEVICE}});
|
||||
if($defs{wl} && $defs{$wl}{LOGDEVICE} && $defs{$defs{$wl}{LOGDEVICE}});
|
||||
$ldType = $wl if(!$ldType);
|
||||
|
||||
open(FH, $gplot_pgm) || return (FW_fatal("$gplot_pgm: $!"), undef);
|
||||
@ -491,7 +491,8 @@ SVG_substcfg($$$$$$)
|
||||
my $oll = $attr{global}{verbose};
|
||||
$attr{global}{verbose} = 0; # Else the filenames will be Log'ged
|
||||
|
||||
my $ldt = $defs{$defs{$wl}{LOGDEVICE}}{TYPE};
|
||||
my $ldt = $defs{$defs{$wl}{LOGDEVICE}}{TYPE}
|
||||
if($defs{$wl} && $defs{$wl}{LOGDEVICE});
|
||||
$ldt = "" if(!defined($ldt));
|
||||
if($file eq "CURRENT" && $ldt eq "FileLog") {
|
||||
$file = $defs{$defs{$wl}{LOGDEVICE}}{currentlogfile};
|
||||
|
Loading…
Reference in New Issue
Block a user