[buddypress-trac] [BuddyPress Trac] #6975: Group admin: "No group found with this ID" block cannot be reached

buddypress-trac noreply at wordpress.org
Wed Mar 23 14:18:28 UTC 2016


#6975: Group admin: "No group found with this ID" block cannot be reached
--------------------------------+-----------------
 Reporter:  boonebgorges        |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  2.6
Component:  Component - Groups  |    Version:  1.9
 Severity:  normal              |   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.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6975>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list