* fix a bug : if there is no project, display error.

This commit is contained in:
zhujinyong
2013-01-24 02:44:32 +00:00
parent 76b00987e5
commit 5ef1e56458

View File

@@ -72,7 +72,7 @@ class projectModel extends model
$project = $this->getById($projectID);
/* Unset story, bug, build and testtask if type is ops. */
if($project->type == 'ops')
if($project and $project->type == 'ops')
{
unset($this->lang->project->menu->story);
unset($this->lang->project->menu->bug);