* Adjust the ternary operator under the task module.

This commit is contained in:
lishuo
2023-05-11 15:06:25 +08:00
committed by 孔令茂
parent ff86a37c72
commit 9462d2ba3c
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1260,7 +1260,7 @@ class taskModel extends model
$task->team = $this->dao->select('*')->from(TABLE_TASKTEAM)->where('task')->eq($taskID)->orderBy('order')->fetchAll('id');
/* Check if the current user is in the team. */
$inTeam = empty($task->team) ? true : false;
$inTeam = empty($task->team);
foreach($task->team as $teamMember)
{
if($teamMember->account == $this->app->user->account) $inTeam = true;