From 1293afde07411d6b4eb314d49af31dcbdf73be11 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 1 Feb 2016 12:03:49 -0500 Subject: [PATCH] removed test print --- index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 4252dcf..59cc3ab 100644 --- a/index.php +++ b/index.php @@ -464,10 +464,11 @@ function michsci_shortcode($atts) michsci_list_categories($cat_id); } else if ( !$catid_id && !$product_id ) { $text_query = $_REQUEST['tsearch']; - if(isset($_REQUEST['tsearch'])){ - setcookie("test", "cool",time()+1, "/" ); + if(isset($text_query)){ + setcookie("search", "true",time()+1, "/" ); + } else { - setcookie("test", "null",time()+1, "/" ); + setcookie("search", "null",time()+1, "/" ); } michsci_list_products($text_query); -- 2.17.1