configDB - bugfix: prevent strange results if no Id present

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5762 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2014-05-06 09:56:02 +00:00
parent 5a0e2f3a6e
commit b63fa6ba7d

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;
}