Commit f218201c authored by Alexis Ragot's avatar Alexis Ragot
Browse files

fix bug on descriptionObject

parent 7804dc34
......@@ -284,14 +284,13 @@ class welcome
} else {
$descriptionHtml = '<table">';
foreach ($archivalProfile->archiveDescription as $archiveDescription) {
if (!array_key_exists($archiveDescription->fieldName, $archive->descriptionObject)) {
$archive->descriptionObject->{$archiveDescription->fieldName} = "";
}
}
if (isset($archive->descriptionObject)) {
foreach ($archivalProfile->archiveDescription as $archiveDescription) {
if (!array_key_exists($archiveDescription->fieldName, $archive->descriptionObject)) {
$archive->descriptionObject->{$archiveDescription->fieldName} = "";
}
}
foreach ($archive->descriptionObject as $name => $value) {
$label = $type = $archivalProfileField = null;
if ($archivalProfile) {
......
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