aboutsummaryrefslogtreecommitdiff
path: root/mod/logbrowser/views/default
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-29 16:47:11 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-29 16:47:11 +0000
commit99a054f50cbb64b5bc82e10d04d29af33081d9a0 (patch)
tree34ad79fc97a7b971cf018772c58bc49d38b04170 /mod/logbrowser/views/default
parentf93ce10e56f335cfe1678ea93ca971f77eb839e1 (diff)
downloadelgg-99a054f50cbb64b5bc82e10d04d29af33081d9a0.tar.gz
elgg-99a054f50cbb64b5bc82e10d04d29af33081d9a0.tar.bz2
Handle anonymous events.
git-svn-id: https://code.elgg.org/elgg/trunk@1580 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/logbrowser/views/default')
-rw-r--r--mod/logbrowser/views/default/logbrowser/listing.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/logbrowser/views/default/logbrowser/listing.php b/mod/logbrowser/views/default/logbrowser/listing.php
index 1c8de10e6..3ce6e2c43 100644
--- a/mod/logbrowser/views/default/logbrowser/listing.php
+++ b/mod/logbrowser/views/default/logbrowser/listing.php
@@ -31,7 +31,10 @@
if ($obj_url) $info .= "</a>";
$info .= " " . elgg_echo($entry->event) . "</b></p>";
- $info .= "<div>" . elgg_echo('by') . " <a href=\"".$by->getURL()."\">{$by->name}</a> ".date('r', $entry->time_created )."</div>";
+ $info .= "<div>";
+ if ($by) $info .= elgg_echo('by') . " <a href=\"".$by->getURL()."\">{$by->name}</a> ";
+ $info .= " " .date('r', $entry->time_created )."</div>";
+
echo elgg_view_listing($icon, $info);
?> \ No newline at end of file