From 25544d15882890eea63d4356d6813827bc45cbcc Mon Sep 17 00:00:00 2001 From: tofulm Date: Tue, 18 Jan 2022 11:59:11 +0100 Subject: [PATCH] =?UTF-8?q?on=20permet=20de=20sortie=20=C3=A0=20l'affichag?= =?UTF-8?q?e=20que=20la=20chaine=20blocklog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blocklog_fonctions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/blocklog_fonctions.php b/blocklog_fonctions.php index 2f83b02..0538bad 100755 --- a/blocklog_fonctions.php +++ b/blocklog_fonctions.php @@ -41,7 +41,7 @@ function blockchaine_sur_pdf(){ return false; } -function afficher_blocklog($texte, $id_dossier, $objet, $type = 'chaine'){ +function afficher_blocklog($texte = '', $id_dossier, $objet, $type = 'chaine'){ $objet = trim($objet); $blockchaine = ''; @@ -57,6 +57,9 @@ function afficher_blocklog($texte, $id_dossier, $objet, $type = 'chaine'){ $blockchaine .= ''; } } + if (empty($texte)) { + return $blockchaine; + } $texte = str_replace('@@blockchaine@@', $blockchaine, $texte); $texte = str_replace('@@blocklog@@', $blockchaine, $texte);