2
0
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:
betateilchen 2014-05-02 17:16:55 +00:00
parent ee45c4b0ab
commit f3a960ef5c

View File

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