aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-29 11:16:51 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-29 11:16:51 +0000
commit151f0a7d26de7bcd8d1ff0050df60e1d483de0a2 (patch)
tree1be1ccb40c9a7f02bc514f42ca269048fd528633
parentc57b6bb290fecd8c75b63ed360cf4b0d7ba0e791 (diff)
downloadelgg-151f0a7d26de7bcd8d1ff0050df60e1d483de0a2.tar.gz
elgg-151f0a7d26de7bcd8d1ff0050df60e1d483de0a2.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Fixed bug in getOwner override git-svn-id: https://code.elgg.org/elgg/trunk@551 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/users.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index efe2f6f83..90b7622ae 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -144,7 +144,7 @@
// Save generic stuff
if (!parent::save())
return false;
-
+
// Now save specific stuff
return create_user_entity($this->get('guid'), $this->get('name'), $this->get('username'), $this->get('password'), $this->get('email'), $this->get('language'), $this->get('code'));
}
@@ -277,7 +277,9 @@
*/
function getOwner() {
if ($this->owner_guid == 0)
- return $this->getGUID();
+ return $this->getGUID();
+
+ return $this->owner_guid;
}
}