diff --git a/module/company/control.php b/module/company/control.php index 523e7c954b..e47f29c356 100644 --- a/module/company/control.php +++ b/module/company/control.php @@ -226,11 +226,11 @@ class company extends control $executions = $this->loadModel('execution')->getPairs(0, 'all', 'nocode'); $executionsIDList = array_keys($executions); $executionsList = $this->execution->getByIdList($executionsIDList); - foreach($executionsList as $executionsID => $execution) + foreach($executionsList as $executionsID => $executionObj) { - foreach($projects as $projectsID => $projectName) + foreach($projects as $projectsID => $projectsName) { - if($execution->project == $projectsID) $executions[$execution->id] = $projectName . '/' . $execution->name; + if($executionObj->project == $projectsID) $executions[$executionObj->id] = $projectsName . '/' . $executionObj->name; } } $executions = array($this->lang->execution->common) + $executions;