array offset type null php8.1

Trying to access array offset on value of type null
This commit is contained in:
gtbu 2022-05-30 15:19:28 +02:00
parent d632d51dd6
commit 2dcd14b7f7

View file

@ -1163,8 +1163,8 @@ $gpustmp4 = &$gpAdmin['gpui_vis'];
}
$display = '<span class="layout_color_id" ' .
'style="background-color:' . $info['color'] . ';"></span>' .
'&nbsp; ' . $info['label'];
'style="background-color:' . (isset($info['color']) ? $info['color'] : 0) . ';"></span>' .
'&nbsp; ' . (isset($info['label']) ? $info['label'] : 0);
echo \gp\tool::Link(
'Admin_Theme_Content/Edit/' . rawurlencode($layout),
$display