Commit 0962f569 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1898654: Only fetch author icon on export when author set



Change-Id: Icf68054b6cb89645fa2e1fde26d682879437b441
Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
parent b9fa4c35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ class HtmlExportFile extends HtmlExportArtefactPlugin {
            // include the comments profile icons
            if ($artefact->get('artefacttype') == 'comment') {
                $author = $artefact->get('author');
                if ($profileicon = get_field('usr', 'profileicon', 'id', $author)) {
                if ($author && $profileicon = get_field('usr', 'profileicon', 'id', $author)) {
                    $profileiconartefact = new ArtefactTypeProfileIcon($profileicon);
                    $this->artefactdata[$profileicon] = $profileiconartefact;
                }