Fix: wrong method

This commit is contained in:
Regis Houssin 2012-06-14 09:43:05 +02:00
parent 159206d52c
commit 515d8278bc

View File

@ -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
{