summaryrefslogtreecommitdiff
path: root/themes/default
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default')
-rw-r--r--themes/default/views/album.html.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php
index abac6d3f..8ec225cf 100644
--- a/themes/default/views/album.html.php
+++ b/themes/default/views/album.html.php
@@ -21,7 +21,9 @@
<h2><?= $child->title ?></h2>
<ul class="gMetadata">
<li>Views: 321</li>
- <li>By: <a href="#"><?= isset($child->user_id) ? $child->user->name : "anonymous"?></a></li>
+ <? if ($child->owner): ?>
+ <li><?= _("By:") ?><a href="#"><?= $child->owner->name ?></a></li>
+ <? endif ?>
</ul>
</li>
<? endforeach ?>