diff options
author | cash <cash.costello@gmail.com> | 2011-12-31 20:35:09 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-12-31 20:35:09 -0500 |
commit | 280f5730b49da487a5ca82c395ca265e37dad997 (patch) | |
tree | 1c0566d4e4724299404745f7cfcba88288774de0 /engine/lib | |
parent | 74a62bf4224e03827d6ba3ac80256be4f74d110b (diff) | |
download | elgg-280f5730b49da487a5ca82c395ca265e37dad997.tar.gz elgg-280f5730b49da487a5ca82c395ca265e37dad997.tar.bz2 |
Fixes #4260 get_user_sites() now works
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/users.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index 3a3756923..1d67bc463 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -299,13 +299,14 @@ function get_user_sites($user_guid, $limit = 10, $offset = 0) { $offset = (int)$offset; return elgg_get_entities_from_relationship(array( + 'site_guids' => ELGG_ENTITIES_ANY_VALUE, 'relationship' => 'member_of_site', 'relationship_guid' => $user_guid, 'inverse_relationship' => FALSE, 'types' => 'site', 'limit' => $limit, - 'offset' => $offset) - ); + 'offset' => $offset, + )); } /** |