diff options
| author | Felix Rabinovich <virshu@users.sourceforge.net> | 2008-11-15 08:19:14 +0000 |
|---|---|---|
| committer | Felix Rabinovich <virshu@users.sourceforge.net> | 2008-11-15 08:19:14 +0000 |
| commit | 6dbf5ae172e8336caa0971024ffdfa0148bcf718 (patch) | |
| tree | 9d8f8d00ab4539a242e4865d8b610fd59920b738 /themes | |
| parent | dc1090d005d4d565e2989dee94be3fcc1a6190a7 (diff) | |
Clean user / item relationship. Upload files gets the ownership of current user; and the views don't break if user module is not installed
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/default/views/album.html.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php index b59dba01..08a67b7b 100644 --- a/themes/default/views/album.html.php +++ b/themes/default/views/album.html.php @@ -21,9 +21,11 @@ <h2><?= $child->title_edit ?></h2> <ul class="gMetadata"> <li>Views: 321</li> - <? if ($child->owner): ?> - <li><?= _("By: ") ?><a href="#"><?= $child->owner->name ?></a></li> - <? endif ?> +<? + try { + echo "<li>" . _("By: ") . '<a href="#">' . $child->owner->name . "</a></li>"; + } catch(Exception $e) {} +?> </ul> </li> <? endforeach ?> |
