* Adjust code style.

This commit is contained in:
qiyu-xie
2020-12-15 09:21:59 +08:00
parent 1bcadb5260
commit 2e747acb1f
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -162,9 +162,7 @@ class router extends baseRouter
$model->model = 'scrum';
if($this->session->PRJ) $model = $this->dbh->query('SELECT model FROM' . TABLE_PROJECT . "WHERE id = {$this->session->PRJ}")->fetch();
if(isset($model->model) && $model->model == 'waterfall')
{ $projectIndex = 2;
}
if(isset($model->model) && $model->model == 'waterfall') $projectIndex = 2;
/* Set productCommon, projectCommon, hourCommon and planCommon. Default english lang. */
$lang->productCommon = isset($this->config->productCommonList[$this->clientLang][(int)$productIndex]) ? $this->config->productCommonList[$this->clientLang][(int)$productIndex] : $this->config->productCommonList['en'][(int)$productIndex];