Skip to:
Content

BuddyPress.org

Changeset 11186


Ignore:
Timestamp:
10/07/2016 09:34:55 PM (8 years ago)
Author:
r-a-y
Message:

Groups: Fix various notices during implementation of group types.

Props danbp.

See #7210. Fixes #7281.

Location:
trunk/src/bp-groups
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-admin.php

    r11176 r11186  
    10481048
    10491049    $types         = bp_groups_get_group_types( array(), 'objects' );
    1050     $current_types = bp_groups_get_group_type( $group->id, false );
     1050    $current_types = (array) bp_groups_get_group_type( $group->id, false );
    10511051    $backend_only  = bp_groups_get_group_types( array( 'show_in_create_screen' => false ) );
    10521052    ?>
  • trunk/src/bp-groups/bp-groups-template.php

    r11176 r11186  
    250250        if ( $types = bp_groups_get_group_type( $group_id, false ) ) {
    251251            // Make sure we can show the type in the list.
    252             if ( false === $show_all ) {
     252            if ( false === $r['show_all'] ) {
    253253                $types = array_intersect( bp_groups_get_group_types( array( 'show_in_list' => true ) ), $types );
    254254                if ( empty( $types ) ) {
Note: See TracChangeset for help on using the changeset viewer.