diff options
author | jesselau76 <jesselau76@gmail.com> | 2018-11-21 04:43:55 +0300 |
---|---|---|
committer | jesselau76 <jesselau76@gmail.com> | 2018-11-21 04:43:55 +0300 |
commit | 948d9b777df1eae1246b454223965d29ef340d5a (patch) | |
tree | 122760e20768e9cbf7274b01b8ef08111a407121 | |
parent | 7202d957b47a94b497481d1b113cbe8d86866746 (diff) |
php q not set error fix
-rw-r--r-- | layouts/search/single.html | 1 |
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'];
|