aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 17:33:40 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 17:33:40 +0000
commitffa39470d8513396e33f56e018cba22b35419dfc (patch)
tree3e37d8bcd177aec434104b24f7102adcbd8452a7 /engine/lib/users.php
parentf2428a552af0a11c024c9f22ae0067b02c6734db (diff)
downloadelgg-ffa39470d8513396e33f56e018cba22b35419dfc.tar.gz
elgg-ffa39470d8513396e33f56e018cba22b35419dfc.tar.bz2
Assorted entity fixes
git-svn-id: https://code.elgg.org/elgg/trunk@376 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 9ddb3bdf1..cc293c411 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -229,7 +229,7 @@
* @param int $limit Number of results to return
* @param int $offset Any indexing offset
*/
- public function getObjects($subtype="", $limit = 10, $offset = 0) { get_user_objects($this->getGUID(), $subtype, $limit, $offset); }
+ public function getObjects($subtype="", $limit = 10, $offset = 0) { return get_user_objects($this->getGUID(), $subtype, $limit, $offset); }
/**
* Get the collections associated with a user.
@@ -239,7 +239,7 @@
* @param int $offset Any indexing offset
* @return unknown
*/
- public function getCollections($subtype="", $limit = 10, $offset = 0) { get_user_collections($this->getGUID(), $subtype, $limit, $offset); }
+ public function getCollections($subtype="", $limit = 10, $offset = 0) { return get_user_collections($this->getGUID(), $subtype, $limit, $offset); }
}
@@ -395,7 +395,8 @@
* @return false|array An array of ElggObjects or false, depending on success
*/
function get_user_objects($user_guid, $subtype = "", $limit = 10, $offset = 0) {
- return get_entities('object',$subtype, $user_guid, "time_created desc", $limit, $offset);
+ $ntt = get_entities('object',$subtype, $user_guid, "time_created desc", $limit, $offset);
+ return $ntt;
}
/**