diff --git a/htdocs/comm/mailing/cibles.php b/htdocs/comm/mailing/cibles.php index 88c532f4791..d8a1b80e92f 100644 --- a/htdocs/comm/mailing/cibles.php +++ b/htdocs/comm/mailing/cibles.php @@ -133,22 +133,12 @@ if ($action == 'delete') { if (!empty($id)) { - foreach ($modulesdir as $dir) - { - $file = $modulesdir."/modules_mailings.php"; - - if (file_exists($file)) - { - $classname = "MailingTargets"; - require_once($file); - - $obj = new $classname($db); - $obj->update_nb($id); - - Header("Location: ".$_SERVER['PHP_SELF']."?id=".$id); - exit; - } - } + $classname = "MailingTargets"; + $obj = new $classname($db); + $obj->update_nb($id); + + Header("Location: ".$_SERVER['PHP_SELF']."?id=".$id); + exit; } else {