From 9ec650f36162822f3a3ff3a14cdc6e1a6d22ecbd Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Sun, 19 Feb 2017 21:49:33 +0000 Subject: [PATCH] 33_readingsGroup.pm: fix initialization if fhemweb hast not been used. see: https://forum.fhem.de/index.php/topic,14425.msg589046.html#msg589046 git-svn-id: https://svn.fhem.de/fhem/trunk@13457 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/33_readingsGroup.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index ea6187a43..d87329216 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -651,8 +651,11 @@ readingsGroup_2html($;$) { my($hash,$extPage) = @_; $hash = $defs{$hash} if( ref($hash) ne 'HASH' ); + + $FW_ME = "" if( !$FW_ME ); + $FW_subdir = "" if( !$FW_subdir ); + return undef if( !$hash ); - return undef if( !$FW_ME ); return undef if( !$init_done ); #if( $hash->{fhem}->{cached} && $hash->{fhem}->{lastDefChange} && $hash->{fhem}->{lastDefChange} == $lastDefChange ) {