Don't trigger a PHP Warning: Undefined index

This commit is contained in:
nathan 2024-02-15 16:04:34 -07:00
parent 976c5261a9
commit 9e1f474f24

View File

@ -539,7 +539,7 @@ class Tree extends Etemplate\Widget
*/ */
'value' => $cat['id'], 'value' => $cat['id'],
'label' => $s, 'label' => $s,
'icon' => $cat['data']['icon'] ?: '', 'icon' => $cat['data']['icon'] ?? '',
'title' => $cat['description'] 'title' => $cat['description']
); );
$cat_id_list[] = $cat['id']; $cat_id_list[] = $cat['id'];