Changes between Initial Version and Version 1 of Ticket #5411, comment 20
- Timestamp:
- 03/07/2014 05:58:58 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5411, comment 20
initial v1 1 1 Hi r-a-y - That patch seems fine. In my mind, I guess I'd been thinking something more along the lines of: 2 2 3 `if ( empty( $group->admins ) ) { 3 {{{ 4 if ( empty( $group->admins ) ) { 4 5 $group = groups_get_group( array( 5 6 'group_id' => $group->id, 6 7 'populate_extras' => true, 7 8 ) ); 8 }` 9 } 10 }}} 9 11 10 12 This prevents us from having to examine arguments for original intent, and also keeps all the query logic centralized in the BP_Groups_Group class. But it's a fairly small difference from what you're doing (and anyway, it should rarely be triggered) so whatever you think is best is OK with me.