fixed issue with non-existing entries

This commit is contained in:
Roland Gruber 2020-01-26 11:34:45 +01:00
parent 9316803fc6
commit 1e4ff3ce11
1 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@ use LAM\ImageUtils\ImageManipulationFactory;
/* /*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2004 Michael Duergner Copyright (C) 2003 - 2004 Michael Duergner
2003 - 2019 Roland Gruber 2003 - 2020 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -121,7 +121,10 @@ function createPdf($structure, $accounts, $pdfKeys, $account_type, $font, $retur
} }
elseif ($section instanceof PDFEntrySection) { elseif ($section instanceof PDFEntrySection) {
// section headline // section headline
if($section->isAttributeTitle()) { if ($section->isAttributeTitle()) {
if (empty($entries[$section->getPdfKey()][0])) {
continue;
}
$section_headline = getSectionHeadline($entries[$section->getPdfKey()][0]); $section_headline = getSectionHeadline($entries[$section->getPdfKey()][0]);
} }
else { else {