summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/default/views/album.html.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php
index 08a67b7b..b59dba01 100644
--- a/themes/default/views/album.html.php
+++ b/themes/default/views/album.html.php
@@ -21,11 +21,9 @@
<h2><?= $child->title_edit ?></h2>
<ul class="gMetadata">
<li>Views: 321</li>
-<?
- try {
- echo "<li>" . _("By: ") . '<a href="#">' . $child->owner->name . "</a></li>";
- } catch(Exception $e) {}
-?>
+ <? if ($child->owner): ?>
+ <li><?= _("By: ") ?><a href="#"><?= $child->owner->name ?></a></li>
+ <? endif ?>
</ul>
</li>
<? endforeach ?>