Fix unused code

This commit is contained in:
Laurent Destailleur 2021-02-15 16:52:05 +01:00
parent be3703a05b
commit 53754a5097

View File

@ -177,7 +177,7 @@ if ($action == 'addcontact_confirm' && $user->rights->projet->creer)
$task_to_affect = explode(',', $affecttotask);
if (!empty($task_to_affect)) {
foreach ($task_to_affect as $task_id) {
if (GETPOSTISSET('person_'.$task_id, 'san_alpha') && GETPOST('person_'.$task_id, 'san_alpha')) {
if (GETPOSTISSET('person_'.$task_id) && GETPOST('person_'.$task_id, 'san_alpha')) {
$tasksToAffect = new Task($db);
$result=$tasksToAffect->fetch($task_id);
if ($result < 0) {