From 8929c663fd9e8949eebb8a2d2a19d5a95b0f8d33 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 30 Sep 2022 13:59:26 +0200 Subject: [PATCH] Clean code --- htdocs/core/lib/company.lib.php | 5 +++++ htdocs/core/lib/ticket.lib.php | 4 ++++ 2 files changed, 9 insertions(+) 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) {