PluginProbe
Private groups / 2.4
Private groups v2.4
trunk 1.5 1.6 1.7 1.8 1.8.1 1.9.1 1.9.2 2.0 2.0.1 2.2 2.3 2.4 2.5 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 All 116 releases
← All changes | includes/search.php +1 -1 1.72.4 View file →
@@ -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