Commit f830a28c authored by Prosper De Laure's avatar Prosper De Laure
Browse files

Bug correction on archive reading when the archive has no profile

parent 189d1068
......@@ -293,9 +293,11 @@ class welcome
$descriptionHtml = '<table">';
if (isset($archive->descriptionObject)) {
foreach ($archivalProfile->archiveDescription as $archiveDescription) {
if (!array_key_exists($archiveDescription->fieldName, $archive->descriptionObject)) {
$archive->descriptionObject->{$archiveDescription->fieldName} = "";
if (isset($archivalProfile->archiveDescription)) {
foreach ($archivalProfile->archiveDescription as $archiveDescription) {
if (!array_key_exists($archiveDescription->fieldName, $archive->descriptionObject)) {
$archive->descriptionObject->{$archiveDescription->fieldName} = "";
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment