aboutsummaryrefslogtreecommitdiff
path: root/actions/add.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/add.php')
-rw-r--r--actions/add.php2
1 files changed, 1 insertions, 1 deletions
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;