From f208c2f42f64631ebd05421011753b333dfc9155 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Tue, 6 May 2014 09:56:02 +0000 Subject: [PATCH] configDB - bugfix: prevent strange results if no Id present git-svn-id: https://svn.fhem.de/fhem/trunk@5762 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/configDB.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/configDB.pm b/fhem/configDB.pm index 67d9be099..90e45db2e 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -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; }