Commit 29b9b1f8 authored by taboubi's avatar taboubi Committed by Robert Lyon
Browse files

HTML Export profile info showing as 'array()' (Bug #1429883)

If user has no socialprofile info set it makes the previous profile value equal 'array()'

Change-Id: Ia6260f63349f43d0a40458f18e25ef2d7c23497d
parent c697f516
......@@ -83,10 +83,12 @@ class HtmlExportInternal extends HtmlExportArtefactPlugin {
$rendered = $artefact->render_self(array('link' => true));
$profiles[] = array('label' => $artefact->get('description'), 'link' => $rendered['html']);
}
$sections[$this->get_category_for_artefacttype($artefact->get('artefacttype'))][$artefact->get('artefacttype')] = array(
'html' => $profiles,
'weight' => $elementlistlookup[$artefact->get('artefacttype')],
);
if (!empty($profiles)) {
$sections[$this->get_category_for_artefacttype($artefact->get('artefacttype'))][$artefact->get('artefacttype')] = array(
'html' => $profiles,
'weight' => $elementlistlookup[$artefact->get('artefacttype')],
);
}
// Sort the data and then drop the weighting information
foreach ($sections as &$section) {
......
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