]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixes #1380 - get_user_friends() was being called with subtype of desired objects...
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 21 Nov 2009 14:45:17 +0000 (14:45 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 21 Nov 2009 14:45:17 +0000 (14:45 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3695 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/users.php

index f1194b7e4f41cfd23cc2fba33c3818176e44684d..313566dfd6fb2f16b5e674e2fac19cfa564dbbd3 100644 (file)
@@ -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();