aboutsummaryrefslogtreecommitdiff
path: root/views/default/friends/collection.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-25 11:21:03 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-25 11:21:03 +0000
commit1894d4e19fe7acb5fcd042b25abc2de9d8ee57fa (patch)
tree81df285c312bc86c05ad5bfe4b2d5d5e820acb80 /views/default/friends/collection.php
parented6238f72c00f27b5df94f478d4ff70ab91982a2 (diff)
downloadelgg-1894d4e19fe7acb5fcd042b25abc2de9d8ee57fa.tar.gz
elgg-1894d4e19fe7acb5fcd042b25abc2de9d8ee57fa.tar.bz2
Improved friend picker.
git-svn-id: https://code.elgg.org/elgg/trunk@1526 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/friends/collection.php')
-rw-r--r--views/default/friends/collection.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/views/default/friends/collection.php b/views/default/friends/collection.php
index 4d08e5b06..b42b4467a 100644
--- a/views/default/friends/collection.php
+++ b/views/default/friends/collection.php
@@ -19,7 +19,7 @@
$coll = $vars['collection'];
if (is_array($vars['collection']->entities)) {
- $count = sizeof($vars['collection']->entities);
+ $count = sizeof($vars['collection']->members);
} else {
$count = 0;
}
@@ -35,8 +35,9 @@
echo " ({$count}) </h2>";
// Ben - this is where the friends picker view needs to go
- if($members = $vars['collection']->entities){
- echo elgg_view('friends/picker',array('entities' => $members));
+ if($friends = $vars['collection']->entities){
+ $members = $vars['collection']->members;
+ echo elgg_view('friends/picker',array('entities' => $friends, 'value' => $members));
}
// close friends_picker div and the accordian list item