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] : '';