diff options
Diffstat (limited to 'rt/lib/RT/Handle.pm')
| -rw-r--r-- | rt/lib/RT/Handle.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rt/lib/RT/Handle.pm b/rt/lib/RT/Handle.pm index 38905de83..bb6142948 100644 --- a/rt/lib/RT/Handle.pm +++ b/rt/lib/RT/Handle.pm @@ -239,8 +239,9 @@ sub CheckIntegrity { return (0, 'no connection', "Failed to connect to $dsn as user '$user': ". $DBI::errstr); } - RT::ConnectToDatabase(); - RT::InitLogging(); + unless ($RT::Handle and $RT::Handle->dbh) { + RT::ConnectToDatabase(); + } require RT::CurrentUser; my $test_user = new RT::CurrentUser; |
