diff --git a/htdocs/core/actions_sendmails.inc.php b/htdocs/core/actions_sendmails.inc.php index a7562eb2c1e..5744316eb4a 100644 --- a/htdocs/core/actions_sendmails.inc.php +++ b/htdocs/core/actions_sendmails.inc.php @@ -370,7 +370,7 @@ if (($action == 'send' || $action == 'relance') && !GETPOST('addfile') && !GETPO $action = 'presend'; } else { $result = $mailfile->sendfile(); - if ($result >= 0) { + if ($result) { // Initialisation of datas of object to call trigger if (is_object($object)) { if (empty($actiontypecode)) { diff --git a/htdocs/core/class/CMailFile.class.php b/htdocs/core/class/CMailFile.class.php index 63d8ab77f6e..d05854d3435 100644 --- a/htdocs/core/class/CMailFile.class.php +++ b/htdocs/core/class/CMailFile.class.php @@ -1194,7 +1194,6 @@ class CMailFile } error_reporting($errorlevel); // Reactive niveau erreur origine - return $res; }