mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Es werden nur Bilder im JPG Format auf die Fotoliste gedruckt da es sonst zu Fehlern bei der Erstellung der Liste kommt
This commit is contained in:
@@ -209,7 +209,16 @@ if($result = $db->db_query($qry))
|
||||
// $pdf->SetXY($maxX,$maxY);
|
||||
// $pdf->MultiCell(80,$lineheight,'',0,'L',1);
|
||||
if($elem->foto_sperre=='f')
|
||||
$pdf->Image(APP_ROOT."cis/public/bild.php?src=person&person_id=".$elem->person_id,$maxX+1,$maxY+1,0,"78","jpg","");
|
||||
{
|
||||
$image_link = APP_ROOT."cis/public/bild.php?src=person&person_id=".$elem->person_id;
|
||||
$type = exif_imagetype($image_link);
|
||||
|
||||
if($type==IMAGETYPE_JPEG)
|
||||
{
|
||||
$file_type='jpg';
|
||||
$pdf->Image($image_link,$maxX+1,$maxY+1,0,"78",$file_type,"");
|
||||
}
|
||||
}
|
||||
$inhalt[]=array($i,$name,$matrikelnr,$sem_verb_grup,'');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user