Skip to:
Content

BuddyPress.org

Changeset 4451


Ignore:
Timestamp:
06/04/2011 09:28:12 PM (13 years ago)
Author:
djpaul
Message:

Fix typo in r3663. Fixes #2996 again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-template.php

    r4431 r4451  
    634634
    635635    $tabs = array();
    636     for ( $i = 0; $i < count($groups); $i++ ) {
     636    for ( $i = 0, $count = count( $groups ); $i < $count; $i++ ) {
    637637        if ( $group_name == $groups[$i]->name )
    638638            $selected = ' class="current"';
     
    642642        if ( !empty( $groups[$i]->fields ) ) {
    643643            $link = $bp->displayed_user->domain . $bp->profile->slug . '/edit/group/' . $groups[$i]->id;
    644             $tabs[] = sprintf( '<li %1$s><a href="%2$s">%3$s</a><li>', $selected, $link, esc_html( $groups[$i]->name ) );
     644            $tabs[] = sprintf( '<li %1$s><a href="%2$s">%3$s</a></li>', $selected, $link, esc_html( $groups[$i]->name ) );
    645645        }
    646646    }
    647647
    648648    $tabs = apply_filters( 'xprofile_filter_profile_group_tabs', $tabs, $groups, $group_name );
    649     foreach ( (array)$tabs as $tab )
     649    foreach ( (array) $tabs as $tab )
    650650        echo $tab;
    651651
Note: See TracChangeset for help on using the changeset viewer.