Skip to content

Commit

Permalink
PHP 7.1 compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Apr 24, 2017
1 parent f9445bf commit 9822374
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/hooks-buddypress-group.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ function cacsp_filter_query_for_bp_group( $query ) {

// Convert group IDs to a tax query.
$tq = $query->get( 'tax_query' );
if ( ! is_array( $tq ) ) {
$tq = array();
}

$group_terms = array();
foreach ( $group_ids as $group_id ) {
$group_terms[] = 'group_' . $group_id;
Expand Down

0 comments on commit 9822374

Please sign in to comment.