Skip to content

Commit

Permalink
BUG: Only getting members in directory if levels exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
messica committed May 16, 2019
1 parent 202538d commit e836de2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ function pmpro_bp_get_members_in_directory() {
}

$pmpro_levels = pmpro_getAllLevels(true, true);

if ( empty( $pmpro_levels ) ) {
return array();
}

//see if we should include them in the member directory.
$include_levels = array();
Expand Down

0 comments on commit e836de2

Please sign in to comment.