2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 19:04:20 +00:00

configDB - minor bugfix (file update)

git-svn-id: https://svn.fhem.de/fhem/trunk@5844 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2014-05-13 10:16:05 +00:00
parent 61ac126ccd
commit cc0c3c5b7b

View File

@ -275,7 +275,8 @@ if($cfgDB_dbconn =~ m/pg:/i) {
my $id = $fhem_dbh->selectrow_array("SELECT filename from fhembinfilesave where filename = '$filename'");
$fhem_dbh->disconnect();
if($id) {
_cfgDB_Fileimport($filename,1) if $id;
my $filesize = -s $filename;
_cfgDB_Fileimport($filename,$filesize,1) if $id;
Log 5, "file $filename updated in configDB";
}
return "";
@ -975,7 +976,8 @@ sub _cfgDB_Updatefile($) {
my $id = $fhem_dbh->selectrow_array("SELECT filename from fhembinfilesave where filename = '$filename'");
$fhem_dbh->disconnect();
if($id) {
_cfgDB_Fileimport($filename,1) if $id;
my $filesize = -s $filename;
_cfgDB_binFileimport($filename,$filesize,1) if $id;
Log 5, "file $filename updated in configDB";
}
return "";