diff --git a/htdocs/install/etape2.php b/htdocs/install/etape2.php index b8373847c25..b4701481a87 100644 --- a/htdocs/install/etape2.php +++ b/htdocs/install/etape2.php @@ -607,5 +607,5 @@ dolibarr_install_syslog("--- install/etape2.php end", LOG_INFO); pFooter(!$ok,$setuplang); -$db->close(); +if (isset($db) && is_object($db)) $db->close(); ?> \ No newline at end of file