]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4260 get_user_sites() now works
authorcash <cash.costello@gmail.com>
Sun, 1 Jan 2012 01:35:09 +0000 (20:35 -0500)
committercash <cash.costello@gmail.com>
Sun, 1 Jan 2012 01:35:09 +0000 (20:35 -0500)
engine/lib/users.php

index 3a3756923d04bee7758ca38c70a522d066d07220..1d67bc4639149cc9156a5306d87d432fb201a64f 100644 (file)
@@ -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,
+       ));
 }
 
 /**