diff --git a/lib/WebGUI/Wobject/SQLReport.pm b/lib/WebGUI/Wobject/SQLReport.pm index fee739b4e..dc48a386b 100644 --- a/lib/WebGUI/Wobject/SQLReport.pm +++ b/lib/WebGUI/Wobject/SQLReport.pm @@ -178,7 +178,7 @@ sub www_view { $output .= WebGUI::International::get(10,$namespace).'

' if ($_[0]->get("debugMode")); WebGUI::ErrorHandler::warn("SQLReport [".$_[0]->get("wobjectId")."] The SQL query is improperly formatted."); } - $dbh->disconnect(); + $dbh->disconnect() unless ($dsn eq $session{config}{dsn}); } else { $output .= WebGUI::International::get(12,$namespace).'

' if ($_[0]->get("debugMode")); WebGUI::ErrorHandler::warn("SQLReport [".$_[0]->get("wobjectId")."] Could not connect to database.");