diff --git a/htdocs/comm/mailing/card.php b/htdocs/comm/mailing/card.php index 0672dbe4753..f7efdcd6727 100644 --- a/htdocs/comm/mailing/card.php +++ b/htdocs/comm/mailing/card.php @@ -153,7 +153,7 @@ if (empty($reshook)) { if (!GETPOST("clone_content", 'alpha') && !GETPOST("clone_receivers", 'alpha')) { setEventMessages($langs->trans("NoCloneOptionsSpecified"), null, 'errors'); } else { - $result = $object->createFromClone($user, $object->id, GETPOST("clone_content"), GETPOST("clone_receivers")); + $result = $object->createFromClone($user, $object->id, GETPOST("clone_content") ? 1 : 0, GETPOST("clone_receivers") ? 1 : 0); if ($result > 0) { header("Location: ".$_SERVER['PHP_SELF'].'?id='.$result); exit;