From 280f5730b49da487a5ca82c395ca265e37dad997 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 31 Dec 2011 20:35:09 -0500 Subject: Fixes #4260 get_user_sites() now works --- engine/lib/users.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engine/lib/users.php') 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, + )); } /** -- cgit v1.2.3