diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/actions/forums/edittopic.php | 2 | ||||
-rw-r--r-- | mod/groups/actions/leave.php | 2 | ||||
-rw-r--r-- | mod/thewire/actions/delete.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/mod/groups/actions/forums/edittopic.php b/mod/groups/actions/forums/edittopic.php index 247c06c8c..b032e37d7 100644 --- a/mod/groups/actions/forums/edittopic.php +++ b/mod/groups/actions/forums/edittopic.php @@ -26,7 +26,7 @@ $tagarray = string_to_tag_array($tags); // Make sure we actually have permission to edit $topic = get_entity($topic_guid); if ($topic){ - $user = $topic->getOwner(); + $user = $topic->getOwnerGUID(); if ($topic->getSubtype() == "groupforumtopic") { // Convert string of tags into a preformatted array diff --git a/mod/groups/actions/leave.php b/mod/groups/actions/leave.php index 5ed2bf648..78431961a 100644 --- a/mod/groups/actions/leave.php +++ b/mod/groups/actions/leave.php @@ -24,7 +24,7 @@ if (($user instanceof ElggUser) && ($group instanceof ElggGroup)) { - if ($group->getOwner() != get_loggedin_userid()) { + if ($group->getOwnerGUID() != get_loggedin_userid()) { if ($group->leave($user)) system_message(elgg_echo("groups:left")); else diff --git a/mod/thewire/actions/delete.php b/mod/thewire/actions/delete.php index 98b5114cc..9b6bf4a99 100644 --- a/mod/thewire/actions/delete.php +++ b/mod/thewire/actions/delete.php @@ -17,7 +17,7 @@ if ($thewire->getSubtype() == "thewire" && $thewire->canEdit()) { // Get owning user - $owner = get_entity($thewire->getOwner()); + $owner = $thewire->getOwnerEntity(); // Delete it! $rowsaffected = $thewire->delete(); if ($rowsaffected > 0) { |