Skip to:
Content

BuddyPress.org

Opened 4 years ago

Closed 4 years ago

#6975 closed defect (bug) (fixed)

Group admin: "No group found with this ID" block cannot be reached

Reported by: boonebgorges Owned by: boonebgorges
Milestone: 2.6 Priority: normal
Severity: normal Version: 1.9
Component: Groups Keywords:
Cc:

Description

The logic looks like this:

$group = groups_get_group( 'group_id=' . (int) $_GET['gid'] );
if ( ! empty( $group ) ) {

} else {

}

But groups_get_group() never returns empty. It always returns a group object.

Change History (1)

#1 @boonebgorges
4 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 10672:

Group admin: Improve logic when deciding whether to show "No group found" message.

See #6911.

Fixes #6975.

Note: See TracTickets for help on using tickets.