Commit d99e8079 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Bugfix for single element render list self elements

parent 0949d4ff
......@@ -654,7 +654,10 @@ function template_render_artefact_block($blockname, $artefact, $format) {
$block .= '<input type="hidden" name="template[' . $blockname . '][id]" value="' . hsc($artefact->get('id')) . '">';
$block .= '<input type="hidden" name="template[' . $blockname . '][format]" value="' . hsc($format) . '">';
}
else if ($format == FORMAT_ARTEFACT_LISTSELF && is_array($artefact)) {
else if ($format == FORMAT_ARTEFACT_LISTSELF) {
if (!is_array($artefact)) {
$artefact = array($artefact);
}
$block .= '<ul>';
foreach ($artefact as $id) {
$block .= '<li>';
......
Markdown is supported
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