diff --git a/module/project/control.php b/module/project/control.php index 19b7c5a7ea..e58a0a94cd 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -25,6 +25,7 @@ class project extends control { $this->projects = $this->project->getPairs('nocode'); if(!$this->projects and $this->methodName != 'index' and $this->methodName != 'create' and $this->app->getViewType() != 'mhtml') $this->locate($this->createLink('project', 'create')); + if(!$this->projects and $this->methodName != 'index' and $this->methodName != 'create' and $this->app->getViewType() == 'mhtml') $this->locate($this->createLink('project', 'index')); } }