]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4204 using only the relationship for getting members of a site
authorcash <cash.costello@gmail.com>
Sun, 1 Jan 2012 01:21:37 +0000 (20:21 -0500)
committercash <cash.costello@gmail.com>
Sun, 1 Jan 2012 01:21:37 +0000 (20:21 -0500)
engine/classes/ElggSite.php

index 6860465128a5b3bef3a20c76d6e33ffc42e75a8b..7ea52a195a66486e09510707c0215f31ff7e95d2 100644 (file)
@@ -235,6 +235,7 @@ class ElggSite extends ElggEntity {
                }
 
                $defaults = array(
+                       'site_guids' => ELGG_ENTITIES_ANY_VALUE,
                        'relationship' => 'member_of_site',
                        'relationship_guid' => $this->getGUID(),
                        'inverse_relationship' => TRUE,
@@ -258,6 +259,7 @@ class ElggSite extends ElggEntity {
         */
        public function listMembers($options = array()) {
                $defaults = array(
+                       'site_guids' => ELGG_ENTITIES_ANY_VALUE,
                        'relationship' => 'member_of_site',
                        'relationship_guid' => $this->getGUID(),
                        'inverse_relationship' => TRUE,