} if ($at != "0" && $sameAssign != "true" && $assignUpdate == "true") { $tmpquery2 = "INSERT INTO " . $tableCollab["assignments"] . "(task,owner,assigned_to,comments,assigned) VALUES('" . $listTasks->tas_id[$i] . "','" . $listTasks->tas_owner[$i] . "','{$at}','{$acomm}','{$dateheure}')"; connectSql("{$tmpquery2}"); // echo $tmpquery2."<br>"; $tmpquery = "WHERE tea.project = '{$project}' AND tea.member = '{$at}'"; $testinTeam = new request(); $testinTeam->openTeams($tmpquery); $comptTestinTeam = count($testinTeam->tea_id); if ($comptTestinTeam == "0") { $tmpquery3 = "INSERT INTO " . $tableCollab["teams"] . "(project,member,published,authorized) VALUES('{$project}','{$at}','1','0')"; connectSql("{$tmpquery3}"); } if ($notifications == "true") { $taskassignment = new notification(); $taskassignment->taskNotification($at, $listTasks->tas_id[$i], 'taskassignment'); } } } } header("Location: ../tasks/listtasks.php?project={$project}&msg=update&PHPSESSID={$PHPSESSID}"); exit; } //--- header --- if ($report != "") { $tmpquery = "WHERE id = '{$report}'"; $reportDetail = new request(); $reportDetail->openReports($tmpquery); $breadcrumbs[] = buildLink("../reports/createreport.php?", $strings["reports"], LINK_INSIDE); $breadcrumbs[] = buildLink("../reports/resultsreport.php?id=" . $reportDetail->rep_id[0], $reportDetail->rep_name[0], LINK_INSIDE); } else {