aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 13:31:46 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 13:31:46 +0000
commit944b8f89b8dd87bf444503d0815aa69ed19f599d (patch)
tree6786d1a4cf55f27ca6fa46364da649932b750e7e /mod/groups/actions
parentffd932df92f857a9607b119a0953ee353c422119 (diff)
downloadelgg-944b8f89b8dd87bf444503d0815aa69ed19f599d.tar.gz
elgg-944b8f89b8dd87bf444503d0815aa69ed19f599d.tar.bz2
Fixes #2668 adding getOwnerGUID()
git-svn-id: http://code.elgg.org/elgg/trunk@7378 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/actions')
-rw-r--r--mod/groups/actions/forums/edittopic.php2
-rw-r--r--mod/groups/actions/leave.php2
2 files changed, 2 insertions, 2 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