diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-10-08 21:52:34 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-10-08 21:52:34 -0400 |
commit | ba4bbf484d33fe24332ff63ac3b063f346a2a74c (patch) | |
tree | 5342f33dd095c43e2cc2bb6bcf635dd3d6f00820 /mod/groups/start.php | |
parent | 9acaf639b57e06178c92b8321012833c4e1fdb80 (diff) | |
download | elgg-ba4bbf484d33fe24332ff63ac3b063f346a2a74c.tar.gz elgg-ba4bbf484d33fe24332ff63ac3b063f346a2a74c.tar.bz2 |
Fixes #3942 fixed all the warnings and notices in the unit tests
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r-- | mod/groups/start.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php index 0425bdea6..1b5b03ce7 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -562,8 +562,10 @@ function groups_user_join_event_listener($event, $object_type, $object) { * Make sure users are added to the access collection */ function groups_access_collection_override($hook, $entity_type, $returnvalue, $params) { - if (elgg_instanceof(get_entity($params['collection']->owner_guid), 'group')) { - return true; + if (isset($params['collection'])) { + if (elgg_instanceof(get_entity($params['collection']->owner_guid), 'group')) { + return true; + } } } |