From eaf2faebdb0500cd1f82c47f02500f6911fa3c35 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 3 Mar 2026 20:24:59 +0100 Subject: [PATCH] Fix regression --- htdocs/core/class/translate.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 18750bc6139..23cf704183f 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -1199,12 +1199,12 @@ class Translate if ($obj) { // If a translation exists, we use it lese we use the default label if ($obj->code_iso && !empty($this->tab_translate["Currency" . $obj->code_iso])) { // Test on tab_translate is faster (possible because we knowhere the "dict" language file has been previously loaded). - $label = $this->trans("Currency" . $obj->code_iso); + $tmplabel = $this->trans("Currency" . $obj->code_iso); } else { - $label = ($obj->label != '-' ? $obj->label : ''); + $tmplabel = ($obj->label != '-' ? $obj->label : ''); } - $this->cache_currencies[$obj->code_iso]['label'] = $label; + $this->cache_currencies[$obj->code_iso]['label'] = $tmplabel; $this->cache_currencies[$obj->code_iso]['unicode'] = (array) json_decode((empty($obj->unicode) ? '' : $obj->unicode), true); // @phan-suppress-current-line PhanTypeMismatchProperty $label[$obj->code_iso] = $this->cache_currencies[$obj->code_iso]['label']; }