From 53754a509718307d2416b0a423cb9f04a44ffbe7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 15 Feb 2021 16:52:05 +0100 Subject: [PATCH] Fix unused code --- htdocs/projet/contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/contact.php b/htdocs/projet/contact.php index a7cb95ec666..3942ee4a5a2 100644 --- a/htdocs/projet/contact.php +++ b/htdocs/projet/contact.php @@ -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) {