From 7ca8fbffb408d7705f0e8c69cec37bc7d983bd6c Mon Sep 17 00:00:00 2001 From: Yagami Date: Tue, 28 Feb 2023 16:22:59 +0800 Subject: [PATCH] * Fix code error. --- module/execution/model.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index e7b396ee8e..ec3a2f4551 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2126,7 +2126,10 @@ class executionModel extends model $executionName = ''; $paths = array_slice(explode(',', trim($execution->path, ',')), 1); - foreach($paths as $path) $executionName .= '/' . $allExecutions[$path]->name; + foreach($paths as $path) + { + if(isset($allExecutions[$path])) $executionName .= '/' . $allExecutions[$path]->name; + } if($executionName) $execution->name = ltrim($executionName, '/'); if(isset($executionProducts[$id])) $execution->name = $executionProducts[$id] . '/' . $execution->name;