From 71f9ec145302492aaf8e5abfd4097fcae0a5a153 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 30 Aug 2012 16:24:23 +0000 Subject: [PATCH] Displaying SVG logs directly from the FileLog (without weblink) causes undefined message git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1818 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- webfrontend/pgm2/01_FHEMWEB.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webfrontend/pgm2/01_FHEMWEB.pm b/webfrontend/pgm2/01_FHEMWEB.pm index 47a38fd1d..3577fd496 100755 --- a/webfrontend/pgm2/01_FHEMWEB.pm +++ b/webfrontend/pgm2/01_FHEMWEB.pm @@ -76,7 +76,7 @@ my %FW_devs; # hash of from/to entries per device my %FW_icons; # List of icons my $FW_plotmode; # Global plot mode (WEB attribute) my $FW_plotsize; # Global plot size (WEB attribute) -my $FW_commandref; # $FW_docdir/commandref.html; +my $FW_commandref; # $FW_docdir/commandref.html; my $FW_RETTYPE; # image/png or the like my $FW_room; # currently selected room my %FW_rooms; # hash of all rooms @@ -1219,7 +1219,7 @@ FW_readgplotfile($$$) my (@filelog, @data, $plot); my $wltype = ""; - $wltype = $defs{$wl}{WLTYPE} if (defined($defs{$wl}{WLTYPE})); + $wltype = $defs{$wl}{WLTYPE} if($defs{$wl} && $defs{$wl}{WLTYPE}); open(FH, $gplot_pgm) || return (FW_fatal("$gplot_pgm: $!"), undef); while(my $l = ) {