aboutsummaryrefslogtreecommitdiff
path: root/views/default/friends/collections.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/friends/collections.php')
-rw-r--r--views/default/friends/collections.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/default/friends/collections.php b/views/default/friends/collections.php
index a98e80c3a..c67f2f0dc 100644
--- a/views/default/friends/collections.php
+++ b/views/default/friends/collections.php
@@ -14,6 +14,8 @@
* @uses $vars['collections'] The array of friends collections
*/
+ if (!isset($friendspicker)) $friendspicker = 0;
+
if (is_array($vars['collections']) && sizeof($vars['collections'])) {
echo "<div class=\"expandall\"><p>expand all</p></div>";
@@ -21,7 +23,8 @@
foreach($vars['collections'] as $collection) {
- echo elgg_view('friends/collection',array('collection' => $collection));
+ $friendspicker++;
+ echo elgg_view('friends/collection',array('collection' => $collection, 'friendspicker' => $friendspicker));
}