Problem behoben wodurch keine Fotoliste erstellt werden konnte wenn eine

Person kein Foto hochgeladen hat
This commit is contained in:
Andreas Österreicher
2023-06-26 13:45:10 +02:00
parent 635494b303
commit efdd81ac0d
+3 -1
View File
@@ -274,6 +274,8 @@ if ($result = $db->db_query($qry)) {
//add foto to document
$doc->addImage($foto_url, trim($row->person_id) . '.jpg', 'image/jpg');
$foto_url = 'Pictures/' . trim($row->person_id) . '.jpg';
}
elseif ($row->foto_sperre == 't')
{
@@ -290,7 +292,7 @@ if ($result = $db->db_query($qry)) {
'personenkennzeichen' => trim($row->matrikelnr),
'geschlecht' => $row->geschlecht,
'foto_gesperrt' => $row->foto_sperre, // f/t
'foto_url' => 'Pictures/' . trim($row->person_id) . '.jpg',
'foto_url' => $foto_url,
'studiengruppe' => $student_studiengruppe,
'verband' => trim($row->verband),
'gruppe' => trim($row->gruppe),