diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 18:56:31 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 18:56:31 +0000 |
commit | 3b6143c0c5861685a8161e7816824a225290185f (patch) | |
tree | f21baca893b1d6fb9389770a284a8ff3cf04426d /views/default/output | |
parent | f23218799dcc49448603c95eabf1179c6f179533 (diff) | |
download | elgg-3b6143c0c5861685a8161e7816824a225290185f.tar.gz elgg-3b6143c0c5861685a8161e7816824a225290185f.tar.bz2 |
updated the default object entity view
git-svn-id: http://code.elgg.org/elgg/trunk@7773 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/output')
-rw-r--r-- | views/default/output/access.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/default/output/access.php b/views/default/output/access.php index 5490d3203..cb1ffc94c 100644 --- a/views/default/output/access.php +++ b/views/default/output/access.php @@ -14,9 +14,9 @@ if (isset($vars['entity']) && elgg_instanceof($vars['entity'])) { // if within a group or shared access collection display group name and open/closed membership status // @todo have a better way to do this instead of checking against subtype / class. - $container = get_entity($vars['entity']->container_guid); + $container = $vars['entity']->getContainerEntity(); - if ($container instanceof ElggGroup) { + if ($container && $container instanceof ElggGroup) { // we decided to show that the item is in a group, rather than its actual access level // not required. Group ACLs are prepended with "Group: " when written. //$access_id_string = elgg_echo('groups:group') . $container->name; @@ -27,7 +27,7 @@ if (isset($vars['entity']) && elgg_instanceof($vars['entity'])) { } else { $access_class .= ' group_closed'; } - } elseif ($container->getSubtype() == 'shared_access') { + } elseif ($container && $container->getSubtype() == 'shared_access') { $access_level .= ' shared_collection'; } elseif ($access_id == ACCESS_PRIVATE) { $access_level .= ' private'; |