2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 16:46:35 +00:00

configDB.pm - small bugfix

git-svn-id: https://svn.fhem.de/fhem/trunk@5193 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2014-03-10 20:12:30 +00:00
parent 447ec2577c
commit 83c7c5dc73

View File

@ -576,7 +576,6 @@ sub _cfgDB_Diff($$$) {
# compare device configurations from 2 versions
sub cfgDB_Diff($$) {
my ($search,$searchversion) = @_;
eval {
use Text::Diff;
my ($ret, $v0, $v1);
my $fhem_dbh = _cfgDB_Connect;
@ -586,8 +585,6 @@ sub cfgDB_Diff($$) {
$ret = diff \$v0, \$v1, { STYLE => "Table" };
$ret = "\nNo differences found!" if !$ret;
$ret = "compare device: $search in current version 0 (left) to version: $searchversion (right)\n$ret\n";
};
return "error: Please install Text::Diff!" if($@);
return $ret;
}