Skip to content

Commit b54e804

Browse files
committed
Fixed some bugs
1 parent 765795e commit b54e804

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/field.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,10 +914,10 @@ public static function showForTab($params)
914914
{
915915
$item = $params['item'];
916916

917-
if ($item->fields['type'] == "") {
917+
if (isset($item->fields['type']) && $item->fields['type'] == "") {
918918
$item->fields['type'] = $params['options']['type'];
919919
}
920-
if ($item->fields['itilcategories_id'] == "") {
920+
if (isset($item->fields['itilcategories_id']) &&$item->fields['itilcategories_id'] == "") {
921921
$item->fields['itilcategories_id'] = $params['options']['itilcategories_id'];
922922
}
923923
$functions = array_column(debug_backtrace(), 'function');

0 commit comments

Comments
 (0)