diff --git src/bp-groups/classes/class-bp-groups-group.php src/bp-groups/classes/class-bp-groups-group.php
index 5f79e6fb9..5c40c011b 100644
|
|
|
class BP_Groups_Group { |
| 1202 | 1202 | } |
| 1203 | 1203 | |
| 1204 | 1204 | if ( ! is_null( $r['parent_id'] ) ) { |
| 1205 | | // Note that `wp_parse_id_list()` converts `false` to 0. |
| 1206 | | $parent_id = implode( ',', wp_parse_id_list( $r['parent_id'] ) ); |
| | 1205 | // For legacy reasons, `false` means groups with no parent. |
| | 1206 | if ( false === $r['parent_id'] ) { |
| | 1207 | $parent_id = 0; |
| | 1208 | } else { |
| | 1209 | $parent_id = implode( ',', wp_parse_id_list( $r['parent_id'] ) ); |
| | 1210 | } |
| | 1211 | |
| 1207 | 1212 | $where_conditions['parent_id'] = "g.parent_id IN ({$parent_id})"; |
| 1208 | 1213 | } |
| 1209 | 1214 | |