mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
configDB - changed AttrRead() to return commandline array
git-svn-id: https://svn.fhem.de/fhem/trunk@5721 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ee45c4b0ab
commit
f3a960ef5c
@ -199,11 +199,10 @@ if($cfgDB_dbconn =~ m/pg:/i) {
|
||||
my $sth = $fhem_dbh->prepare( $sql );
|
||||
$sth->execute();
|
||||
while (@line = $sth->fetchrow_array()) {
|
||||
$row = "$line[1],$line[2],$line[3]";
|
||||
if($line[1] eq 'configdb') {
|
||||
$attr{configdb}{$line[2]} = $line[3];
|
||||
} else {
|
||||
push @rets, $row;
|
||||
push @rets, "attr $line[1] $line[2] $line[3]";
|
||||
}
|
||||
}
|
||||
$fhem_dbh->disconnect();
|
||||
|
Loading…
x
Reference in New Issue
Block a user