aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-01 19:58:47 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-01 19:58:47 +0000
commita2274eb6dcdc90e4892131d1b527e73856aa05ad (patch)
treeebf5da18d090b17eee559fcc967f92bd08fbc43f
parent237caef7b9358b08e75145a6c4fec53ad04cb7b1 (diff)
downloadelgg-a2274eb6dcdc90e4892131d1b527e73856aa05ad.tar.gz
elgg-a2274eb6dcdc90e4892131d1b527e73856aa05ad.tar.bz2
Fixes #1566: Rewriting calls to get_group_members() to use 1.7's constant for site_guid.
git-svn-id: http://code.elgg.org/elgg/trunk@3980 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/group.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php
index 58fd4adab..362f45402 100644
--- a/engine/lib/group.php
+++ b/engine/lib/group.php
@@ -746,6 +746,12 @@ function get_entities_from_metadata_groups_multi($group_guid, $meta_array, $enti
* @return mixed
*/
function get_group_members($group_guid, $limit = 10, $offset = 0, $site_guid = 0, $count = false) {
+
+ // in 1.7 0 means "not set." rewrite to make sense.
+ if (!$site_guid) {
+ $site_guid = ELGG_ENTITIES_ANY_VALUE;
+ }
+
return elgg_get_entities_from_relationship(array(
'relationship' => 'member',
'relationship_guid' => $group_guid,