* Fix bug#17075.

This commit is contained in:
xieqiyu
2021-12-03 14:46:12 +08:00
parent acf95daf8a
commit a944ec7ccd
2 changed files with 3 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ class build extends control
}
/* Set menu. */
$executions = array();
if($this->app->tab == 'project')
{
$this->loadModel('project')->setMenu($projectID);
@@ -64,7 +65,7 @@ class build extends control
$executions = $this->execution->getPairs($execution->project);
}
$executionList = $this->execution->getByIdList(array_keys($executions));
$executionList = empty($executions) ? array() : $this->execution->getByIdList(array_keys($executions));
foreach($executionList as $execution)
{
if($execution->lifetime == 'ops') unset($executions[$execution->id]);