projects
/
WP-Plugins
/
michsci-products.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8119336
)
removed test print
author
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 1 Feb 2016 17:03:49 +0000
(12:03 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 1 Feb 2016 17:03:49 +0000
(12:03 -0500)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
4252dcf
..
59cc3ab
100644
(file)
--- 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);