aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/discussions.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/discussions.php')
-rw-r--r--mod/groups/discussions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/groups/discussions.php b/mod/groups/discussions.php
index 4fa1cb5ca..19821c3b3 100644
--- a/mod/groups/discussions.php
+++ b/mod/groups/discussions.php
@@ -15,11 +15,11 @@
// Load Elgg engine
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
- // Get the current page's owner
+ // Get the current page's owner
$page_owner = page_owner_entity();
if ($page_owner === false || is_null($page_owner)) {
$page_owner = $_SESSION['user'];
- set_page_owner($page_owner->getGUID());
+ set_page_owner($_SESSION['guid']);
}
// Display them