2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

configDB - bugfix: prevent strange results if no Id present

git-svn-id: https://svn.fhem.de/fhem/trunk@5762 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2014-05-06 09:56:02 +00:00
parent 0d1afd91d2
commit f208c2f42f

View File

@ -428,9 +428,9 @@ if($cfgDB_dbconn =~ m/pg:/i) {
sub cfgDB_Fileversion($$) {
my ($file,$ret) = @_;
my $fhem_dbh = _cfgDB_Connect;
my $id = $fhem_dbh->selectrow_array("SELECT line from fhemfilesave where filename = '$file' and line like '%$Id:%'");
my $id = $fhem_dbh->selectrow_array("SELECT line from fhemfilesave where filename = '$file' and line like '%\$Id:%'");
$fhem_dbh->disconnect();
$ret = ($id) ? $id : $ret;
$ret = ($id) ? $id : "$file - no SVN Id found!";
return $ret;
}