From 8b17883ae53d1c01ef17e3b8c71781236102ba3d Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 4 Mar 2011 12:36:05 +0000 Subject: preventing crashes when user does not have access to the group on group profile page git-svn-id: http://code.elgg.org/elgg/trunk@8580 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/views/default/groups/profile/activity_module.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mod/groups/views') diff --git a/mod/groups/views/default/groups/profile/activity_module.php b/mod/groups/views/default/groups/profile/activity_module.php index 60a8e025c..1c7e6daa2 100644 --- a/mod/groups/views/default/groups/profile/activity_module.php +++ b/mod/groups/views/default/groups/profile/activity_module.php @@ -12,6 +12,9 @@ if ($vars['entity']->activity_enable == 'no') { } $group = $vars['entity']; +if (!$group) { + return true; +} $all_link = elgg_view('output/url', array( -- cgit v1.2.3