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};