diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index bf284a77997..49d69747c7b 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -8799,9 +8799,9 @@ class Form // Use select2 selector if (!empty($conf->use_javascript_ajax)) { include_once DOL_DOCUMENT_ROOT.'/core/lib/ajax.lib.php'; - $comboenhancement = ajax_combobox($htmlname, '', 0, $forcefocus); - $out .= $comboenhancement; - $morecss = 'minwidth200imp maxwidth500'; + $comboenhancement = ajax_combobox($htmlname, '', 0, $forcefocus); + $out .= $comboenhancement; + $morecss = 'minwidth200imp maxwidth500'; } if (empty($option_only)) { diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index 40ae02624bb..5f3d4df5292 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -565,11 +565,9 @@ if ($action == 'confirm_generateinter') { if ($interToUse) { $tmpinter->fetch($interToUse); - } - else { + } else { $result = $tmpinter->create($user); - if ($result <= 0) - { + if ($result <= 0) { $error++; setEventMessages($tmpinter->error, $tmpinter->errors, 'errors'); }