From 4e9a4407f03e67b690821838278859fcf56d2e37 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Sat, 7 Sep 2019 11:07:03 +0000 Subject: [PATCH] configDB.pm: fixed setuuid problem in first device git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20121 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- configDB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configDB.pm b/configDB.pm index 33493e580..0413366fe 100644 --- a/configDB.pm +++ b/configDB.pm @@ -708,7 +708,7 @@ sub _cfgDB_Connect() { sub _cfgDB_InsertLine($$$$) { my ($fhem_dbh, $uuid, $line, $counter) = @_; my ($c,$d,$p1,$p2) = split(/ /, $line, 4); - $p2 //= ""; + $p2 //= "" if $c eq 'setuuid'; Log(5,"configDB Debug - c:$c d:$d p1:$p1 p2:$p2 l:$counter u:$uuid"); my $sth = $fhem_dbh->prepare('INSERT INTO fhemconfig values (?, ?, ?, ?, ?, ?)'); $sth->execute($c, $d, $p1, $p2, $counter, $uuid);