* [task#120194,done,0.5h,0h] add array initialization.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user