From 1275de56b79b9ae14fd89bc32bd242de29448e77 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 14 Feb 2018 09:08:03 -0500 Subject: [PATCH] removing events results if there is no text search if no text search , remove events results --- inc/custom.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/custom.php b/inc/custom.php index 7e3269e..0e6ff33 100644 --- a/inc/custom.php +++ b/inc/custom.php @@ -130,7 +130,7 @@ function display_memberfindme_directory() { $_REQUEST['action'] = 'list'; $_REQUEST['event_name'] = $_REQUEST['s']; echo do_shortcode('[glm-members-list view="grid" ]'); - if( isset($_REQUEST['textSearch']) ){ + if( isset($_REQUEST['textSearch']) && !empty($_REQUEST['textSearch'])){ echo do_shortcode('[glm-members-event-list]'); } // $my_postid = 30722;//This is page id or post id -- 2.17.1