aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2013-02-02 18:31:12 -0800
committerSteve Clay <steve@mrclay.org>2013-02-02 18:31:12 -0800
commit2cd87bb4ecf6df7b3aea9189cf1933ac3a78038c (patch)
tree26fff564142315496f9956f40daebe056d812794 /engine/lib/users.php
parentb809dee488be374f248763741a5e1429219fe988 (diff)
parentf8bee7421d1c3880ba7acb3f8fd16042d598a95f (diff)
downloadelgg-2cd87bb4ecf6df7b3aea9189cf1933ac3a78038c.tar.gz
elgg-2cd87bb4ecf6df7b3aea9189cf1933ac3a78038c.tar.bz2
Merge pull request #398 from jeabakker/#4880
#4880 - incorrect usage of elgg_get_entities_* parameters
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 95ef9d176..9d1fba2d4 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -302,7 +302,7 @@ function get_user_sites($user_guid, $limit = 10, $offset = 0) {
'relationship' => 'member_of_site',
'relationship_guid' => $user_guid,
'inverse_relationship' => FALSE,
- 'types' => 'site',
+ 'type' => 'site',
'limit' => $limit,
'offset' => $offset,
));
@@ -387,8 +387,8 @@ $offset = 0) {
return elgg_get_entities_from_relationship(array(
'relationship' => 'friend',
'relationship_guid' => $user_guid,
- 'types' => 'user',
- 'subtypes' => $subtype,
+ 'type' => 'user',
+ 'subtype' => $subtype,
'limit' => $limit,
'offset' => $offset
));
@@ -411,8 +411,8 @@ $offset = 0) {
'relationship' => 'friend',
'relationship_guid' => $user_guid,
'inverse_relationship' => TRUE,
- 'types' => 'user',
- 'subtypes' => $subtype,
+ 'type' => 'user',
+ 'subtype' => $subtype,
'limit' => $limit,
'offset' => $offset
));