Try fix warning

This commit is contained in:
ldestailleur
2025-10-11 13:21:04 +02:00
parent 7f180687a1
commit 755c616dfd

View File

@@ -197,8 +197,8 @@ function formatObject($objtoshow, $prefix)
if (empty($label) && !empty($otherlabels[$key])) {
$label = $langs->trans($otherlabels[$key]);
}
if (empty($label) && array_key_exists($key, $convertkey) && array_key_exists($convertkey[$key], $otherlabels)) {
$label = $langs->trans($otherlabels[$convertkey[$key]]);
if (empty($label) && array_key_exists($key, $convertkey) && array_key_exists((string) $convertkey[$key], $otherlabels)) {
$label = $langs->trans($otherlabels[(string) $convertkey[$key]]);
}
if (empty($label)) {
$label = array_key_exists($key, $convertkey) ? $convertkey[$key] : '';