From 35bad9b519d57a3ae3a4523875e61f3024d47f7f Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sun, 28 Apr 2019 17:59:57 +0000 Subject: [PATCH] 93_DbRep: FHEM command "dbReadingsVal" implemented git-svn-id: https://svn.fhem.de/fhem/trunk@19282 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/93_DbRep.pm | 2 +- fhem/contrib/DS_Starter/93_DbRep.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/93_DbRep.pm b/fhem/FHEM/93_DbRep.pm index fcb39862a..a66d26255 100644 --- a/fhem/FHEM/93_DbRep.pm +++ b/fhem/FHEM/93_DbRep.pm @@ -1542,7 +1542,7 @@ sub DbRep_getInitDataDone($) { my $opt = $a[4]; my $prop = $a[5]; my $fret = \&{$a[6]} if($a[6]); - my $idxstate = decode_base64($a[7]); + my $idxstate = $a[7]?decode_base64($a[7]):""; my $dblogdevice = $hash->{HELPER}{DBLOGDEVICE}; $hash->{dbloghash} = $defs{$dblogdevice}; my $dbconn = $hash->{dbloghash}{dbconn}; diff --git a/fhem/contrib/DS_Starter/93_DbRep.pm b/fhem/contrib/DS_Starter/93_DbRep.pm index 4b657ebaa..1e5d3d750 100644 --- a/fhem/contrib/DS_Starter/93_DbRep.pm +++ b/fhem/contrib/DS_Starter/93_DbRep.pm @@ -1542,7 +1542,7 @@ sub DbRep_getInitDataDone($) { my $opt = $a[4]; my $prop = $a[5]; my $fret = \&{$a[6]} if($a[6]); - my $idxstate = decode_base64($a[7]); + my $idxstate = $a[7]?decode_base64($a[7]):""; my $dblogdevice = $hash->{HELPER}{DBLOGDEVICE}; $hash->{dbloghash} = $defs{$dblogdevice}; my $dbconn = $hash->{dbloghash}{dbconn};