| @@ -49,9 +49,9 @@ | ||
| 49 | 49 | $allowed_posts = private_groups_get_permitted_post_ids(new WP_Query($default)); |
| 50 | 50 | |
| 51 | 51 | // The default forum query with allowed forum ids array added |
| 52 | 52 | $default['post__in'] = $allowed_posts; |
| 53 | - | |
| 53 | + if (empty ($allowed_posts )) $default['post__in'] = array(0) ; | |
| 54 | 54 | |
| 55 | 55 | //then return to bbp search code |
| 56 | 56 | /** Setup *****************************************************************/ |
| 57 | 57 | |