configDB - changed AttrRead() to return commandline array

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5721 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2014-05-02 17:16:55 +00:00
parent 26b27b0992
commit 1f23ebdd25

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