aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-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