diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 295fb3dc46b..11aefda225b 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5053,7 +5053,7 @@ class Form * @param bool $excludeConfCurrency false = If company current currency not in table, we add it into list. Should always be available. true = we are in currency_rate update , we don't want to see conf->currency in select * @return string */ - public function selectMultiCurrency($selected = '', $htmlname = 'multicurrency_code', $useempty = 0, $filter= '',$excludeConfCurrency = false) + public function selectMultiCurrency($selected = '', $htmlname = 'multicurrency_code', $useempty = 0, $filter = '', $excludeConfCurrency = false) { global $db, $conf, $langs, $user; diff --git a/htdocs/multicurrency/multicurrency_rate.php b/htdocs/multicurrency/multicurrency_rate.php index 68ff8fb3be5..64f426b93b2 100644 --- a/htdocs/multicurrency/multicurrency_rate.php +++ b/htdocs/multicurrency/multicurrency_rate.php @@ -116,7 +116,7 @@ if ($action == "create"){ dol_syslog("currencyRate:createRate", LOG_WARNING); setEventMessage($langs->trans('successRateCreate')); } - }else{ + } else { setEventMessage($langs->trans('NoEmptyRate'), "errors"); } } @@ -133,10 +133,10 @@ if ($action == 'update'){ $res = $currencyRate->update(); if ($res){ setEventMessage($langs->trans('successUpdateRate')); - }else{ + }else { setEventMessage($langs->trans('errorUpdateRate'), "errors"); } - }else{ + }else { setEventMessage($langs->trans(''), "warnings"); } } @@ -158,10 +158,10 @@ if ($action == "deleteRate"){ 0, 1 ); - }else{ + }else { dol_syslog("Multicurrency::fetch", LOG_WARNING); } - }else{ + }else { setEventMessage($langs->trans('NoCurrencyRateSelected'), "warnings"); } } @@ -173,10 +173,10 @@ if ($action == "confirm_delete"){ $result = $current_rate->delete(); if ($result){ setEventMessage($langs->trans('successRateDelete')); - }else{ + }else { setEventMessage($langs->trans('errorRateDelete')); } - }else{ + }else { setEventMessage($langs->trans('NoCurrencyRateSelected'), "warnings"); dol_syslog($langs->trans('NoCurrencyRateSelected'), LOG_WARNING); } @@ -270,7 +270,7 @@ if ($action == "updateRate"){ if ($resultcurrentCurrency){ $currency_code = $curr->code; - }else{ + }else { $currency_code = ''; } @@ -300,7 +300,7 @@ if ($action == "updateRate"){ print ''; print ''; print ''; - }else{ + }else { dol_syslog("currency_rate:list:update", LOG_WARNING); } } @@ -350,7 +350,7 @@ if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST)) $page = 0; $offset = 0; } - }else{ + }else { setEventMessage($langs->trans('No_record_on_multicurrency_rate'), 'warnings'); } } @@ -396,7 +396,7 @@ if ($resql) if ($sall) { - foreach($fieldstosearchall as $key => $val) $fieldstosearchall[$key]=$langs->trans($val); + foreach ($fieldstosearchall as $key => $val) $fieldstosearchall[$key]=$langs->trans($val); print '