diff --git a/scripts/find.js b/scripts/find.js index 8bc2bb8..a67b53c 100644 --- a/scripts/find.js +++ b/scripts/find.js @@ -74,11 +74,15 @@ if ("GET"==rinput.verb) { // prep the view fields if (disp==FindView.FD_COMMUNITIES) { // set the category (which also sets up the subcategory list and contained communities) - view.category = rinput.user.getCategoryDescriptor(catid); - if (view.category.categoryID>=0) - { // fill in the communities that are in this category - view.results = rinput.user.getCommunitiesInCategory(view.category,view.offset,max_results); - view.findCount = rinput.user.getNumCommunitiesInCategory(view.category); + if (rinput.engine.useCategories()) + { // only do this if we're using categories + view.category = rinput.user.getCategoryDescriptor(catid); + if (view.category.categoryID>=0) + { // fill in the communities that are in this category + view.results = rinput.user.getCommunitiesInCategory(view.category,view.offset,max_results); + view.findCount = rinput.user.getNumCommunitiesInCategory(view.category); + + } // end if } // end if