diff --git a/htdocs/core/actions_massactions.inc.php b/htdocs/core/actions_massactions.inc.php index eb3173e0cef..87e3947c793 100644 --- a/htdocs/core/actions_massactions.inc.php +++ b/htdocs/core/actions_massactions.inc.php @@ -1316,7 +1316,6 @@ if (!$error && ($massaction == 'delete' || ($action == 'delete' && $confirm == ' } if ($result <= 0) { - $TMsg = array_merge($objecttmp->errors, $TMsg); $error++; } else { @@ -1332,7 +1331,7 @@ if (!$error && ($massaction == 'delete' || ($action == 'delete' && $confirm == ' // Message for elements well deleted if ($nbok > 1) { setEventMessages($langs->trans("RecordsDeleted", $nbok), null, 'mesgs'); - } elseif(!empty($nbok)) { + } elseif (!empty($nbok)) { setEventMessages($langs->trans("RecordsDeleted", '1'), null, 'mesgs'); } $db->commit();