* fix the bug when no projects.

This commit is contained in:
wangchunsheng
2010-01-09 03:48:04 +00:00
parent 65c97ea195
commit 75dbca70c1

View File

@@ -30,6 +30,7 @@ class project extends control
{
parent::__construct();
$this->projects = $this->project->getPairs();
if(!$this->projects and $this->methodName != 'create') $this->locate($this->createLink('project', 'create'));
}
/* 项目视图首页,*/