diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 0399c8f44e7..cbf2582860c 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -692,15 +692,6 @@ if (! defined('NOLOGIN')) $db->commit(); } - if (! empty($user->conf->MAIN_LANDING_PAGE)) // Example: /index.php - { - $newpath=dol_buildpath($user->conf->MAIN_LANDING_PAGE, 1); - if ($_SERVER["PHP_SELF"] != $newpath) // not already on landing page (avoid infinite loop) - { - header('Location: '.$newpath); - exit; - } - } if (! empty($conf->global->MAIN_LANDING_PAGE)) // Example: /index.php { $newpath=dol_buildpath($conf->global->MAIN_LANDING_PAGE, 1); diff --git a/htdocs/user/hierarchy.php b/htdocs/user/hierarchy.php index 14b8ec4265b..8ac96a336f4 100644 --- a/htdocs/user/hierarchy.php +++ b/htdocs/user/hierarchy.php @@ -43,7 +43,6 @@ $sall=GETPOST('sall','alpha'); $search_user=GETPOST('search_user','alpha'); $userstatic=new User($db); -$companystatic = new Societe($db); $search_statut=GETPOST('search_statut','int'); if ($search_statut == '') $search_statut='1';