diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-27 17:00:23 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-27 17:00:23 +0000 |
commit | d33b1210925eb4077b582e0c17875103c09772c2 (patch) | |
tree | 3af0f44a1f4434f18162c8a3d478613fa60ef291 /mod/groups/views/default/object | |
parent | c3fc445ccbc590ec930fe56e5756b88bddb13259 (diff) | |
download | elgg-d33b1210925eb4077b582e0c17875103c09772c2.tar.gz elgg-d33b1210925eb4077b582e0c17875103c09772c2.tar.bz2 |
Removing WSOD errors in groups
git-svn-id: https://code.elgg.org/elgg/trunk@2317 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default/object')
-rw-r--r-- | mod/groups/views/default/object/groupforumtopic.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/groups/views/default/object/groupforumtopic.php b/mod/groups/views/default/object/groupforumtopic.php index c841f3f82..23afe00e0 100644 --- a/mod/groups/views/default/object/groupforumtopic.php +++ b/mod/groups/views/default/object/groupforumtopic.php @@ -23,7 +23,11 @@ $last_user = $last->owner_guid; } - $info = "<p class=\"latest_discussion_info\">" . elgg_echo('created') . " " . $forum_created . ", " . elgg_echo('with') . " " . $counter . " " . elgg_echo('posts') . "<br /><span class=\"timestamp\">last updated " . friendly_time($last_time) . "<br />by <a href=\"" . get_user($last_user)->getURL() . "\">" . get_user($last_user)->username . "</a></span></p>"; + $info = "<p class=\"latest_discussion_info\">" . elgg_echo('created') . " " . $forum_created . ", " . elgg_echo('with') . " " . $counter . " " . elgg_echo('posts') . "<br /><span class=\"timestamp\">last updated " . friendly_time($last_time);
+ if ($u = get_user($last_user)) {
+ $info .= "<br />by <a href=\"" . $u->getURL() . "\">" . $u->username . "</a></span>";
+ }
+ $info .= '</p>'; //get the group avatar $icon = elgg_view("profile/icon",array('entity' => $group, 'size' => 'small')); //get the group and topic title |