Skip to content
Snippets Groups Projects
Commit 84365367 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

messages/_message_row view: check for message author before calling getFullName, fixes #4678

Merge request studip/studip!3480
parent f784b0ac
No related branches found
No related tags found
No related merge requests found
...@@ -44,10 +44,12 @@ ...@@ -44,10 +44,12 @@
<? else: ?> <? else: ?>
<?= _('unbekannt') ?> <?= _('unbekannt') ?>
<? endif ?> <? endif ?>
<? else: ?> <? elseif ($message->author instanceof User): ?>
<a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $message->author->username]) ?>"> <a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $message->author->username]) ?>">
<?= htmlReady($message->author->getFullName()) ?> <?= htmlReady($message->author->getFullName()) ?>
</a> </a>
<? else: ?>
<?= _('unbekannt') ?>
<? endif; ?> <? endif; ?>
</td> </td>
<td><?= strftime('%x %R', $message['mkdate']) ?></td> <td><?= strftime('%x %R', $message['mkdate']) ?></td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment