From 871a987e7abc69e49c87c640e565dd510cf25eee Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 4 May 2009 16:21:26 +0000 Subject: [PATCH] Fix: active module user just in install mode --- htdocs/install/etape5.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/install/etape5.php b/htdocs/install/etape5.php index f55a43c65c3..834ab9c2521 100644 --- a/htdocs/install/etape5.php +++ b/htdocs/install/etape5.php @@ -107,18 +107,18 @@ if ($_POST["action"] == "set" || $_POST["action"] == "upgrade") $db = new DoliDb($conf->db->type,$conf->db->host,$conf->db->user,$conf->db->pass,$conf->db->name,$conf->db->port); $ok = 0; - - // Active module user - $modName='modUser'; - $file = $modName . ".class.php"; - dolibarr_install_syslog('install/etape5.php Load module user '.DOL_DOCUMENT_ROOT ."/includes/modules/".$file, LOG_INFO); - include_once(DOL_DOCUMENT_ROOT ."/includes/modules/".$file); - $objMod = new $modName($db); - $objMod->init(); // If first install if ($_POST["action"] == "set") { + // Active module user + $modName='modUser'; + $file = $modName . ".class.php"; + dolibarr_install_syslog('install/etape5.php Load module user '.DOL_DOCUMENT_ROOT ."/includes/modules/".$file, LOG_INFO); + include_once(DOL_DOCUMENT_ROOT ."/includes/modules/".$file); + $objMod = new $modName($db); + $objMod->init(); + if ($db->connected == 1) { $conf->setValues($db);