From 4fd2468b6f971b24ee2571cd3e77b0e022493c38 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Thu, 7 Jun 2018 18:13:00 +0200 Subject: [PATCH 1/2] clean code --- htdocs/user/notify/card.php | 4 +--- htdocs/user/param_ihm.php | 6 ------ 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/htdocs/user/notify/card.php b/htdocs/user/notify/card.php index cac9a3d476b..307b8ae5bc9 100644 --- a/htdocs/user/notify/card.php +++ b/htdocs/user/notify/card.php @@ -205,7 +205,7 @@ if ($result > 0) print_liste_field_titre(''); print "\n"; - $var=false; + // $listofemails=$object->thirdparty_and_contact_email_array(); if ($object->email) { @@ -277,7 +277,6 @@ if ($result > 0) // List of active notifications print_fiche_titre($langs->trans("ListOfActiveNotifications").' ('.$num.')','',''); - $var=true; // Line with titles print ''; @@ -299,7 +298,6 @@ if ($result > 0) while ($i < $num) { - $var = !$var; $obj = $db->fetch_object($resql); diff --git a/htdocs/user/param_ihm.php b/htdocs/user/param_ihm.php index b0473e15c49..76b25751806 100644 --- a/htdocs/user/param_ihm.php +++ b/htdocs/user/param_ihm.php @@ -235,13 +235,11 @@ if ($action == 'edit') clearstatcache(); - $var=true; print '
'; print ''; // Landing page - print ''; print ''; // Langue par defaut - print ''; print ''; // Taille max des listes - print ''; print ''; print '
'.$langs->trans("Parameter").''.$langs->trans("DefaultValue").' '.$langs->trans("PersonalValue").'
'.$langs->trans("LandingPage").''; print (empty($conf->global->MAIN_LANDING_PAGE)?'':$conf->global->MAIN_LANDING_PAGE); @@ -255,7 +253,6 @@ if ($action == 'edit') print '
'.$langs->trans("Language").''; $s=picto_from_langcode($conf->global->MAIN_LANG_DEFAULT); @@ -270,7 +267,6 @@ if ($action == 'edit') print '
'.$langs->trans("MaxSizeList").''.$conf->global->MAIN_SIZE_LISTE_LIMIT.'conf->MAIN_SIZE_LISTE_LIMIT)?" checked":""); @@ -301,8 +297,6 @@ else dol_banner_tab($object,'id',$linkback,$user->rights->user->user->lire || $user->admin); - $var=true; - print ''; print ''; From 9a44a433b8f739fc0c4929d85435c29be95a76c4 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Thu, 7 Jun 2018 18:32:00 +0200 Subject: [PATCH 2/2] clean code --- htdocs/user/param_ihm.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/user/param_ihm.php b/htdocs/user/param_ihm.php index 76b25751806..75e55470a59 100644 --- a/htdocs/user/param_ihm.php +++ b/htdocs/user/param_ihm.php @@ -240,6 +240,7 @@ if ($action == 'edit') print ''; // Landing page + print ''; print ''; // Langue par defaut + print ''; print ''; // Taille max des listes + print ''; print ''; print '
'.$langs->trans("Parameter").''.$langs->trans("DefaultValue").' '.$langs->trans("PersonalValue").'
'.$langs->trans("Parameter").''.$langs->trans("DefaultValue").' '.$langs->trans("PersonalValue").'
'.$langs->trans("LandingPage").''; print (empty($conf->global->MAIN_LANDING_PAGE)?'':$conf->global->MAIN_LANDING_PAGE); @@ -253,6 +254,7 @@ if ($action == 'edit') print '
'.$langs->trans("Language").''; $s=picto_from_langcode($conf->global->MAIN_LANG_DEFAULT); @@ -267,6 +269,7 @@ if ($action == 'edit') print '
'.$langs->trans("MaxSizeList").''.$conf->global->MAIN_SIZE_LISTE_LIMIT.'conf->MAIN_SIZE_LISTE_LIMIT)?" checked":"");