Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/21/2011 02:22:31 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Prevent errors when an xprofile field group does not have any fields.

File:
1 edited

Legend:

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

    r4033 r4060  
    625625                        $selected = '';
    626626
    627                 if ( $groups[$i]->fields ) {
     627                if ( !empty( $groups[$i]->fields ) ) {
    628628                        $link = $bp->displayed_user->domain . $bp->profile->slug . '/edit/group/' . $groups[$i]->id;
    629629                        $tabs[] = sprintf( '<li %1$s><a href="%2$s">%3$s</a><li>', $selected, $link, esc_html( $groups[$i]->name ) );
Note: See TracChangeset for help on using the changeset viewer.