@@ -, +, @@ --- C4/Update/Database.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) --- a/C4/Update/Database.pm +++ a/C4/Update/Database.pm @@ -537,12 +537,11 @@ sub SetVersion { sub TableExists { my $table = shift; eval { - local $dbh->{PrintError} = 0; - local $dbh->{RaiseError} = 1; - $dbh->do(qq{SELECT * FROM $table WHERE 1 = 0 }); - }; + local $dbh->{PrintError} = 0; + local $dbh->{RaiseError} = 0; + $dbh->do(qq{SELECT * FROM $table WHERE 1 = 0 }); + }; return 1 unless $@; return 0; } - 1; --