Skip to:

Opened 8 years ago

Closed 8 years ago

#6975 closed defect (bug) (fixed)

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

Reported by: boonebgorges's profile boonebgorges Owned by: boonebgorges's profile boonebgorges
Milestone: 2.6 Priority: normal
Severity: normal Version: 1.9
Component: Groups Keywords:


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
8 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.