Remove duplicated code or useless code
This commit is contained in:
parent
81f0b516b9
commit
3726b127a1
@ -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);
|
||||
|
||||
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user