From 671b9bd574b635543daef30fb46a059f2290a976 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Tue, 17 Feb 2026 18:47:01 +0000 Subject: [PATCH] a --- .../ebene/Tarifs/Controleur/Editioncarteassure.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Societes/ebene/Tarifs/Controleur/Editioncarteassure.php b/Societes/ebene/Tarifs/Controleur/Editioncarteassure.php index 13f6dd8d..a1b9d8d1 100755 --- a/Societes/ebene/Tarifs/Controleur/Editioncarteassure.php +++ b/Societes/ebene/Tarifs/Controleur/Editioncarteassure.php @@ -144,17 +144,21 @@ $pdf->SetFont('Arial', 'B', 6); $pdf->Cell(0, 3, substr(mb_convert_encoding($assure['adherent'], "ISO-8859-1", "UTF-8"), 0, 15), 0, 1); // Photo de l'assuré (positionnée à droite) - taille réduite -// $photoPath = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$assure['lienPhoto']; -// $photo=$assure['lienPhoto']; +$photo=$assure['lienPhoto']; $faceRegistered=$assure['faceRegistered']; $photoPath = ""; $photoX = 57; $photoY = 17; // Vérifier si l'URL est accessible -$headers = @get_headers($photoPath); +$headers = null; +if($photo>" " && $faceRegistered=="1") +{ + $headers = @get_headers($photoPath); +} -if ($assure['lienPhoto']>" " && $headers && $faceRegistered=="1") { +// if ($assure['lienPhoto']>" " && $headers && $faceRegistered=="1") { +if ($headers) { $photoPath = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$assure['lienPhoto']; $data = decryptImage($photoPath); $data = base64_decode($data);