From 76e36b7f98945428371e5cb03734e2c3623514e4 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Sat, 19 Apr 2014 23:04:46 +0000 Subject: [PATCH] configDB - code improvement git-svn-id: https://svn.fhem.de/fhem/trunk@5576 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/configDB.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fhem/configDB.pm b/fhem/configDB.pm index 95c905b1b..5d9eba630 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -682,18 +682,18 @@ sub _cfgDB_Filelist { return $ret; } -sub _cfgDB_Readlayout($) { +sub _cfgDB_Readfile($) { my ($filename) = @_; my $fhem_dbh = _cfgDB_Connect; my $sth = $fhem_dbh->prepare( "SELECT line FROM fhemfilesave WHERE filename = '$filename'" ); $sth->execute(); - my @layout; + my @outfile; while (my @line = $sth->fetchrow_array()) { - push @layout, "$line[0] "; + push @outfile, "$line[0] "; } $sth->finish(); $fhem_dbh->disconnect(); - return (int(@layout)) ? join("\n",@layout) : undef; + return (int(@outfile)) ? join("\n",@outfile) : undef; }