Commit eed15484 authored by Nigel McNie's avatar Nigel McNie

Don't assume folder artefacts have a size field.

Mainly cos they don't any more, Richard removed it on September 17th.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent a6db3b6c
......@@ -194,8 +194,11 @@ class HtmlExportFile extends HtmlExportArtefactPlugin {
$artefacts = array_filter($this->artefactdata,
create_function('$a', 'return $a->get("parent") == ' . $parent . ' && $a->get("artefacttype") ' . $equality . ' "folder";'));
foreach ($artefacts as $artefact) {
$size = $artefact->get('size');
$size = ($size) ? display_size($size) : '';
$size = '';
if ($artefact->get('artefacttype') != 'folder') {
$size = $artefact->get('size');
$size = ($size) ? display_size($size) : '';
}
$data[] = array(
'icon' => '',
'title' => $artefact->get('title'),
......
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