* Fixed site editing issues and report errors.

This commit is contained in:
tianshujie98
2021-08-24 13:23:28 +08:00
parent 3dfbd1304b
commit ef601db4b5
+2 -1
View File
@@ -1600,9 +1600,10 @@ class projectModel extends model
public function getTeamMemberPairs($projectID)
{
$project = $this->getByID($projectID);
$type = $this->config->systemMode == 'new' ? $project->type : 'project';
if(empty($project)) return array();
$type = $this->config->systemMode == 'new' ? $project->type : 'project';
$members = $this->dao->select("t1.account, if(t2.deleted='0', t2.realname, t1.account) as realname")->from(TABLE_TEAM)->alias('t1')
->leftJoin(TABLE_USER)->alias('t2')->on('t1.account = t2.account')
->where('t1.root')->eq((int)$projectID)