Remove duplicated code or useless code

This commit is contained in:
Laurent Destailleur 2015-11-04 14:31:03 +01:00
parent 81f0b516b9
commit 3726b127a1
2 changed files with 0 additions and 10 deletions

View File

@ -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);

View File

@ -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';