diff --git a/htdocs/societe/admin/societe.php b/htdocs/societe/admin/societe.php index 73f75ac4698..84c53494ce9 100644 --- a/htdocs/societe/admin/societe.php +++ b/htdocs/societe/admin/societe.php @@ -199,16 +199,13 @@ if ($action == "setaddadressinlist") { } //Activate Set email phone town in contact list -if ($action=="setaddemailphonetownincontactlist") { +if ($action == "setaddemailphonetownincontactlist") { $val = GETPOST('value', 'int'); $res = dolibarr_set_const($db, "CONTACT_SHOW_EMAIL_PHONE_TOWN_SELECTLIST", $val, 'yesno', 0, '', $conf->entity); - if (! $res > 0) $error++; - if (! $error) - { + if (!$res > 0) $error++; + if (!$error) { setEventMessages($langs->trans("SetupSaved"), null, 'mesgs'); - } - else - { + } else { setEventMessages($langs->trans("Error"), null, 'errors'); } } @@ -816,17 +813,14 @@ print ''; print ''; print '