From a1d056d0bf0a28fc2589995b3eff66d5425dd06d Mon Sep 17 00:00:00 2001 From: Dave Tosh Date: Wed, 26 May 2010 16:07:09 +0000 Subject: videos now work for groups git-svn-id: http://code.elgg.org@6234 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/add.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actions/add.php') diff --git a/actions/add.php b/actions/add.php index 528e65269..87f459a3a 100644 --- a/actions/add.php +++ b/actions/add.php @@ -23,7 +23,7 @@ if ($page_owner === false || is_null($page_owner)) { set_page_owner($_SESSION['guid']); } -if($page_owner->type == "group") { +if($page_owner instanceof ElggGroup) { $entity_referer = $page_owner->type.":".$page_owner->getGUID(); } else { $entity_referer = $page_owner->username; -- cgit v1.2.3