Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jesselau76/hugo-w3-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjesselau76 <jesselau76@gmail.com>2018-11-21 04:43:55 +0300
committerjesselau76 <jesselau76@gmail.com>2018-11-21 04:43:55 +0300
commit948d9b777df1eae1246b454223965d29ef340d5a (patch)
tree122760e20768e9cbf7274b01b8ef08111a407121
parent7202d957b47a94b497481d1b113cbe8d86866746 (diff)
php q not set error fix
-rw-r--r--layouts/search/single.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/search/single.html b/layouts/search/single.html
index 768c5c1..135e8ae 100644
--- a/layouts/search/single.html
+++ b/layouts/search/single.html
@@ -1,5 +1,6 @@
{{ define "customphp" -}}
{{ "<?php" | safeHTML }}
+ $q = '';
if (isset($_GET['q']) && $_GET['q'] != '') {
$q =$_GET['q'];