Fix: wrong method
This commit is contained in:
parent
159206d52c
commit
515d8278bc
@ -133,22 +133,12 @@ if ($action == 'delete')
|
|||||||
{
|
{
|
||||||
if (!empty($id))
|
if (!empty($id))
|
||||||
{
|
{
|
||||||
foreach ($modulesdir as $dir)
|
$classname = "MailingTargets";
|
||||||
{
|
$obj = new $classname($db);
|
||||||
$file = $modulesdir."/modules_mailings.php";
|
$obj->update_nb($id);
|
||||||
|
|
||||||
if (file_exists($file))
|
Header("Location: ".$_SERVER['PHP_SELF']."?id=".$id);
|
||||||
{
|
exit;
|
||||||
$classname = "MailingTargets";
|
|
||||||
require_once($file);
|
|
||||||
|
|
||||||
$obj = new $classname($db);
|
|
||||||
$obj->update_nb($id);
|
|
||||||
|
|
||||||
Header("Location: ".$_SERVER['PHP_SELF']."?id=".$id);
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user