diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 845deda4590..513033f5d32 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -23,13 +23,24 @@ */ define('DOL_VERSION','1.2.0-DEV'); -if (! @include_once("conf/conf.php") or ! isset($dolibarr_main_db_host)) +if (! @include_once("conf/conf.php")) { print "
\n"; print "Bienvenue sur Dolibarr

\n"; print "Votre système n'est pas encore configuré, pour procéder à l'installation, cliquer ici"; print "
\n"; - exit ; + exit ; +} +else +{ + if (! isset($dolibarr_main_db_host)) + { + print "
\n"; + print "Bienvenue sur Dolibarr

\n"; + print "Votre système n'est pas encore configuré, pour procéder à l'installation, cliquer ici"; + print "
\n"; + exit ; + } } define('DOL_DOCUMENT_ROOT', $dolibarr_main_document_root);