From 151f0a7d26de7bcd8d1ff0050df60e1d483de0a2 Mon Sep 17 00:00:00 2001 From: icewing Date: Tue, 29 Apr 2008 11:16:51 +0000 Subject: Marcus Povey * Fixed bug in getOwner override git-svn-id: https://code.elgg.org/elgg/trunk@551 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engine') 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; } } -- cgit v1.2.3