* Strict codes.

This commit is contained in:
daitingting
2023-06-06 08:06:22 +00:00
parent ac350b9c38
commit 4c2a09e5e4
+1 -1
View File
@@ -527,7 +527,7 @@ function initTableData($items, &$fieldList, $checkModel)
/* Set parent attribute. */
$item->isParent = false;
if($item->parent == -1)
if(isset($item->parent) && $item->parent == -1)
{
/* When the parent is -1, the hierarchical structure is displayed incorrectly. */
$item->parent = 0;