Need to check for the regionData before trying to foreach it.
// Check for user region selection
$categoryRegionList = '';
$categoryRegionSep = '';
- if (isset($_REQUEST) && (isset($_REQUEST['regionUserSearch']) && count($_REQUEST['regionUserSearch']) > 0) || (isset($_REQUEST['regionSearch']) && $_REQUEST['regionSearch'] != "")) {
+ if (isset($_REQUEST) && is_array($regionData) && (isset($_REQUEST['regionUserSearch']) && count($_REQUEST['regionUserSearch']) > 0) || (isset($_REQUEST['regionSearch']) && $_REQUEST['regionSearch'] != "")) {
foreach ($regionData as $r) {
$id = $r['id'];
$regionData[$id]['default'] = false;
$resultParam = 'list';
}
+ $where = apply_filters('glm-member-db-front-search-query', $where);
+
/*
* Get a current list of members - unless this is a blank start
*/