From 19e7bea04aae259f46f9b615b6b0be257ba56e87 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Mon, 26 May 2025 14:02:17 +0200 Subject: [PATCH] FIX warning in dictionnary for payment codes --- htdocs/admin/dict.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index 0588d6bc007..44ac0c3bf41 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -2501,10 +2501,9 @@ if ($id > 0) { $titletoshow = $key; $class = "tdoverflowmax150"; } elseif ($value == 'libelle' && $tabname[$id] == 'c_paiement') { - $transavailableforcode = $langs->tab_translate["PaymentType".strtoupper($obj->code)]; $key = $langs->trans("PaymentType".strtoupper($obj->code)); $valuetoshow = $obj->$value; - if ($obj->code && $transavailableforcode) { + if ($obj->code && array_key_exists("PaymentType".strtoupper($obj->code), $langs->tab_translate)) { $htmltext = $form->textwithpicto($langs->trans("TranslationFound").': '.$key, $langs->trans("TheTranslationIsSearchedFromKey", "PaymentType".strtoupper($obj->code))); } else { $htmltext = $form->textwithpicto($langs->trans("TranslationFound").': '.$langs->trans("No"), $langs->trans("TheTranslationIsSearchedFromKey", "PaymentType".strtoupper($obj->code)));