aboutsummaryrefslogtreecommitdiff
path: root/views/default/output
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 18:56:31 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 18:56:31 +0000
commit3b6143c0c5861685a8161e7816824a225290185f (patch)
treef21baca893b1d6fb9389770a284a8ff3cf04426d /views/default/output
parentf23218799dcc49448603c95eabf1179c6f179533 (diff)
downloadelgg-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.php6
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';