$featuredMembers = false;
$memberSearch = false;
$appendSelect = '';
+ $memberType = false;
+ $categorySearch = false;
+ $amenitySearch = false;
+ $citySearch = false;
+ $ajaxRequest = false;
// Paging Parameters
$paging = $this->config['settings']['list_pagination']; // Now this is in management
$actionData = apply_filters( 'glm-member-db-front-search-request', $actionData );
// Check for "show" shortcode parameter (what elements to show on the page)
$settings = array();
- $showList = $actionData['request']['show'];
+ $showList = isset( $actionData['request']['show'] ) ? $actionData['request']['show'] : false;
if ($showList) {
// Separate options and see if we have any
}
// Apply any provided text search to name, description, short description, and street address
- if (trim($actionData['request']['text-search']) != '') {
+ if ( isset($actionData['request']['text-search']) && trim($actionData['request']['text-search']) != '') {
$textSearch = addslashes(stripslashes(filter_var($actionData['request']['text-search'], FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES)));
$where .= $whereSep." (
( match(member_name) against('$textSearch') )
// If we have a region set in shortcode or via URL.
$regions = array();
- if ($actionData['request']['region-search']) {
+ if ( isset( $actionData['request']['region-search'] ) && $actionData['request']['region-search']) {
// Convert comma separated list to an array
$regionsRequested = explode( ',', $actionData['request']['region-search'] );
$counties = array();
// If we have a county set in shortcode or via URL.
- if ($actionData['request']['county-search']) {
+ if ( isset( $actionData['request']['county-search'] ) && $actionData['request']['county-search']) {
// Convert comma separated list to an array
$countiesRequested = explode( ',', $actionData['request']['county-search'] );
// Setup ajax Request
$ajaxRequest = '';
- if ( $memberType ) {
+ if ( isset( $memberType ) && $memberType ) {
$ajaxRequest .= "&memberType=$memberType";
}
- if ( $categorySearch ) {
+ if ( isset( $categorySearch ) && $categorySearch ) {
$ajaxRequest .= "&categorySearch=$categorySearch";
}
- if ( $citySearch ) {
+ if ( isset( $citySearch ) && $citySearch ) {
$ajaxRequest .= "&citySearch=$citySearch";
}
- if ( $ajaxRequest ) {
+ if ( isset( $ajaxRequest ) && $ajaxRequest ) {
$ajaxRequest .= "&ajaxRequest=$ajaxRequest";
}
- if ( $view ) {
+ if ( isset( $view ) && $view ) {
$ajaxRequest .= "&view=$view";
}
- if ( $blankStart ) {
+ if ( isset( $blankStart ) && $blankStart ) {
$ajaxRequest .= "&blankStart=$blankStart";
}
- if ( $catSelected ) {
+ if ( isset( $catSelected ) && $catSelected ) {
$ajaxRequest .= "&catSelected=$catSelected";
}
if ( isset( $_REQUEST['textSearch'] ) ) {