diff --git a/blocklog_fonctions.php b/blocklog_fonctions.php index 5bbbdc4..0c3c609 100755 --- a/blocklog_fonctions.php +++ b/blocklog_fonctions.php @@ -37,13 +37,14 @@ function trouver_blocklog($id_objet, $objet, $id = false){ function afficher_blocklog($texte, $id_dossier, $objet){ $objet = trim($objet); + $blockchaine = ''; if (intval($id_dossier) and $objet) { $blockchaine = trouver_blocklog($id_dossier, $objet); - - $texte = str_replace('@@blockchaine@@', $blockchaine, $texte); - $texte = str_replace('@@blocklog@@', $blockchaine, $texte); } + $texte = str_replace('@@blockchaine@@', $blockchaine, $texte); + $texte = str_replace('@@blocklog@@', $blockchaine, $texte); + return $texte; }