configDB.pm: fixed setuuid problem in first device

git-svn-id: https://svn.fhem.de/fhem/trunk@20121 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2019-09-07 11:07:03 +00:00
parent be5eb49264
commit 043ba1ca54

View File

@@ -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);