diff --git a/trunk/module/index/control.php b/trunk/module/index/control.php index 049306f2ea..966e44659e 100644 --- a/trunk/module/index/control.php +++ b/trunk/module/index/control.php @@ -41,10 +41,8 @@ class index extends control $projects = $this->project->getList('doing'); $products = array_values($this->product->getList()); - foreach($projects as $project) - { - $burns[$project->id] = $this->report->createChart('line', $this->createLink('project', 'burnData', "project=$project->id", 'xml'), 300, 300); - } + $burns = array(); + foreach($projects as $project) $burns[$project->id] = $this->report->createChart('line', $this->createLink('project', 'burnData', "project=$project->id", 'xml'), 300, 300); $this->assign('header', $header); $this->assign('projects', $projects);