* [task#120194,done,0.5h,0h] add array initialization.

This commit is contained in:
tanghucheng
2024-06-11 13:48:00 +08:00
parent cfb1977340
commit 76419a4084
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -100,6 +100,7 @@ class programplanModel extends model
{
$plans = $this->getStage($executionID, $productID, $type);
$parents = array();
$pairs = array();
if(strpos($type, 'leaf') !== false) array_map(function($plan) use(&$parents){$parents[$plan->parent] = true;}, $plans);
foreach($plans as $planID => $plan)