si pas de blockchaine, on transforme par une valeur vide
This commit is contained in:
parent
f9aa495cd3
commit
405332fd85
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue