From 755c616dfd8809ab06ff63a6f69c548c86ee8f65 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Sat, 11 Oct 2025 13:21:04 +0200 Subject: [PATCH] Try fix warning --- htdocs/blockedlog/ajax/block-info.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/blockedlog/ajax/block-info.php b/htdocs/blockedlog/ajax/block-info.php index 8d8d0ecde5d..707353715c5 100644 --- a/htdocs/blockedlog/ajax/block-info.php +++ b/htdocs/blockedlog/ajax/block-info.php @@ -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] : '';