diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-28 08:14:33 -0800 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-28 08:14:33 -0800 |
| commit | f943a2deefa822544ef737e579649c6437dc3450 (patch) | |
| tree | b8d540c480edfee8c081234d367b59eeb0788675 /modules/gallery | |
| parent | cedbc82dccaf74a983f1f92846735b69391fdf10 (diff) | |
Don't show a link to the user profile for the guest user
Diffstat (limited to 'modules/gallery')
| -rw-r--r-- | modules/gallery/views/admin_block_log_entries.html.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/views/admin_block_log_entries.html.php b/modules/gallery/views/admin_block_log_entries.html.php index 453724cb..5a8ed23c 100644 --- a/modules/gallery/views/admin_block_log_entries.html.php +++ b/modules/gallery/views/admin_block_log_entries.html.php @@ -2,7 +2,11 @@ <ul> <? foreach ($entries as $entry): ?> <li class="<?= log::severity_class($entry->severity) ?>" style="direction: ltr"> + <? if ($entry->user->guest): ?> + </span><?= html::clean($entry->user->name) ?></span> + <? else: ?> <a href="<?= user_profile::url($entry->user->id) ?>"><?= html::clean($entry->user->name) ?></a> + <? endif ?> <?= gallery::date_time($entry->timestamp) ?> <?= $entry->message ?> <?= $entry->html ?> |
