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);