Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/30/2014 06:57:53 PM (6 years ago)
Author:
johnjamesjacoby
Message:

Prevent outputting visibility settings table for empty profile field groups. See #5352.

File:
1 edited

Legend:

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

    r8210 r8214  
    290290
    291291        $field_ids = '';
    292         foreach ( (array) $group->fields as $field )
    293             $field_ids .= $field->id . ',';
     292
     293        if ( !empty( $group->fields ) ) {
     294            foreach ( (array) $group->fields as $field ) {
     295                $field_ids .= $field->id . ',';
     296            }
     297        }
    294298
    295299        return substr( $field_ids, 0, -1 );
Note: See TracChangeset for help on using the changeset viewer.