fixed bug 641040

This commit is contained in:
JT Smith 2002-11-23 03:34:40 +00:00
parent 88a310fde7
commit 4776b235c4

View file

@ -178,7 +178,7 @@ sub www_view {
$output .= WebGUI::International::get(10,$namespace).'<p>' 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).'<p>' if ($_[0]->get("debugMode"));
WebGUI::ErrorHandler::warn("SQLReport [".$_[0]->get("wobjectId")."] Could not connect to database.");