foreach ($categoryData as $k=>$v) {
$categoryData[$k]['default'] = false;
}
+ }
+ // Check if a category has been submitted
+ if (isset($_REQUEST['categorySearch'])) {
+ $catSelected = $_REQUEST['categorySearch'] - 0;
+ } elseif ($actionData['request']['category']) {
+ $catSelected = $actionData['request']['category'];
+ }
- // Check if a category has been submitted
- if (isset($_REQUEST['categorySearch'])) {
- $catSelected = $_REQUEST['categorySearch'] - 0;
- } elseif ($actionData['request']['category']) {
- $catSelected = $actionData['request']['category'];
- }
-
- // If we have a category ID
- if ($catSelected > 0) {
+ // If we have a category ID
+ if ($catSelected > 0) {
- $where .= $whereSep." T.id in (
- SELECT DISTINCT(member_info)
- FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX."category_member_info M,
- ".GLM_MEMBERS_PLUGIN_DB_PREFIX."categories C
- WHERE M.category in($catSelected)
- OR (C.parent in($catSelected) AND M.category = C.id)
- )";
- $whereSep = ' AND ';
+ $where .= $whereSep." T.id in (
+ SELECT DISTINCT(member_info)
+ FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX."category_member_info M,
+ ".GLM_MEMBERS_PLUGIN_DB_PREFIX."categories C
+ WHERE M.category in($catSelected)
+ OR (C.parent in($catSelected) AND M.category = C.id)
+ )";
+ $whereSep = ' AND ';
- // Set default to true for the selected category
- $c = explode(',', $catSelected);
- $categoryData[$c[0]]['default'] = true;
+ // Set default to true for the selected category
+ $c = explode(',', $catSelected);
+ $categoryData[$c[0]]['default'] = true;
- }
}
+
// Get amenity filter data
$amenityData = false;
/*
* Get a current list of members
*/
-
+
// Get member list and sort
$list = $this->getList($where.$alphaWhere, 'member_name');