correction deprecated sur l'appel arg fonction

This commit is contained in:
Christophe 2022-02-22 15:37:14 +01:00
parent 9fac6e1c66
commit a0349698f0

View file

@ -35,13 +35,13 @@ function trouver_blocklog($id_objet, $objet, $all = false){
} }
function blockchaine_sur_pdf(){ function blockchaine_sur_pdf(){
if (!defined('_BLOCKLOG_CACHER_PDF') or _BLOCKLOG_CACHER_PDF !== true){ if (!defined('_BLOCKLOG_CACHER_PDF') or (defined('_BLOCKLOG_CACHER_PDF') and _BLOCKLOG_CACHER_PDF !== true)){
return true; return true;
} }
return false; return false;
} }
function afficher_blocklog($texte = '', $id_dossier, $objet, $type = 'chaine'){ function afficher_blocklog($texte = '', $id_dossier = 0, $objet = '', $type = 'chaine'){
$objet = trim($objet); $objet = trim($objet);
$blockchaine = '<span class="affichage_blockchaine">'; $blockchaine = '<span class="affichage_blockchaine">';
@ -50,7 +50,7 @@ function afficher_blocklog($texte = '', $id_dossier, $objet, $type = 'chaine'){
$img = '<img class="icone_blockchaine" src="'.$img.'" style="height:1em;width: 1em;">'; $img = '<img class="icone_blockchaine" src="'.$img.'" style="height:1em;width: 1em;">';
$img .= "&nbsp;"; $img .= "&nbsp;";
} }
if (!defined('_BLOCKLOG_CACHER_PDF') or _BLOCKLOG_CACHER_PDF !== true){ if (!defined('_BLOCKLOG_CACHER_PDF') or (defined('_BLOCKLOG_CACHER_PDF') and _BLOCKLOG_CACHER_PDF !== true)){
if (intval($id_dossier) and $objet) { if (intval($id_dossier) and $objet) {
$blockchaine .= $img; $blockchaine .= $img;
$blockchaine .= trouver_blocklog($id_dossier, $objet, true)[$type]; $blockchaine .= trouver_blocklog($id_dossier, $objet, true)[$type];