From 5945cc746414ac97572a7ad706bfdc85d9ee28b8 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 3 Aug 2023 15:07:42 +0800 Subject: [PATCH] * Fix bug for tree view. --- module/execution/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index 2a911a3d15..74723505a7 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -5073,7 +5073,7 @@ class executionModel extends model } } } - $node->children = array_values($node->children); + $node->children = isset($node->children) ? array_values($node->children) : array(); } } elseif($node->type == 'product')