diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php
index 34942483751..99b7a75f459 100644
--- a/htdocs/core/lib/company.lib.php
+++ b/htdocs/core/lib/company.lib.php
@@ -1957,6 +1957,11 @@ function show_actions_done($conf, $langs, $db, $filterobj, $objcon = '', $noprin
$out .= "\n";
$i++;
}
+ if (empty($histo)) {
+ $colspan = 9;
+ $out .= '
| '.$langs->trans("NoRecordFound").' |
';
+ }
+
$out .= "\n";
$out .= "\n";
diff --git a/htdocs/core/lib/ticket.lib.php b/htdocs/core/lib/ticket.lib.php
index 6ebc791bfbf..9223c1c4dd8 100644
--- a/htdocs/core/lib/ticket.lib.php
+++ b/htdocs/core/lib/ticket.lib.php
@@ -878,6 +878,10 @@ function show_ticket_messaging($conf, $langs, $db, $filterobj, $objcon = '', $no
}
$out .= "\n";
+
+ if (empty($histo)) {
+ $out .= ''.$langs->trans("NoRecordFound").'';
+ }
}
if ($noprint) {