aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-21 14:45:17 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-21 14:45:17 +0000
commit75037abc30459a0c3add847eceb267afbfe4b5e5 (patch)
tree736e99abcb04ad418016549fdc1cd971c722cebd /engine
parent3c670790fc2d2b4092daee497354ca95d58e2f4f (diff)
downloadelgg-75037abc30459a0c3add847eceb267afbfe4b5e5.tar.gz
elgg-75037abc30459a0c3add847eceb267afbfe4b5e5.tar.bz2
fixes #1380 - get_user_friends() was being called with subtype of desired objects in get_user_friends_objects() - thanks for the report
git-svn-id: http://code.elgg.org/elgg/trunk@3695 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/users.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index f1194b7e4..313566dfd 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -676,7 +676,7 @@ function list_user_objects($user_guid, $subtype = "", $limit = 10, $fullview = t
* @return false|array An array of ElggObjects or false, depending on success
*/
function get_user_friends_objects($user_guid, $subtype = "", $limit = 10, $offset = 0) {
- if ($friends = get_user_friends($user_guid, $subtype, 999999, 0)) {
+ if ($friends = get_user_friends($user_guid, "", 999999, 0)) {
$friendguids = array();
foreach($friends as $friend) {
$friendguids[] = $friend->getGUID();
@@ -694,7 +694,7 @@ function get_user_friends_objects($user_guid, $subtype = "", $limit = 10, $offse
* @return int The number of objects
*/
function count_user_friends_objects($user_guid, $subtype = "") {
- if ($friends = get_user_friends($user_guid, $subtype, 999999, 0)) {
+ if ($friends = get_user_friends($user_guid, "", 999999, 0)) {
$friendguids = array();
foreach($friends as $friend) {
$friendguids[] = $friend->getGUID();