diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-03-26 21:09:06 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-03-26 21:09:06 +0100 |
commit | 55b3aa3552b0627510bce66ff208529c168a2836 (patch) | |
tree | b866ffaafc4e180dad24476b25fe12ccdeec05bd /app/class/Controllerhome.php | |
parent | 9ce7ecebaf118546bf3a3cbad7ce448d490ade15 (diff) | |
download | wcms-55b3aa3552b0627510bce66ff208529c168a2836.tar.gz wcms-55b3aa3552b0627510bce66ff208529c168a2836.zip |
add id in deepsearchbar options
Diffstat (limited to 'app/class/Controllerhome.php')
-rw-r--r-- | app/class/Controllerhome.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/class/Controllerhome.php b/app/class/Controllerhome.php index 71f110e..907bef7 100644 --- a/app/class/Controllerhome.php +++ b/app/class/Controllerhome.php @@ -74,8 +74,9 @@ class Controllerhome extends Controllerpage public function deepsearch() : array { if (!isset($_GET['search'])) { - $searchopt = ['title' => 1, 'description' => 1, 'content' => 1, 'other' => 0, 'casesensitive' => 0]; + $searchopt = ['id' => 1, 'title' => 1, 'description' => 1, 'content' => 1, 'other' => 0, 'casesensitive' => 0]; } else { + $searchopt['id'] = $_GET['id'] ?? 0; $searchopt['title'] = $_GET['title'] ?? 0; $searchopt['description'] = $_GET['description'] ?? 0; $searchopt['content'] = $_GET['content'] ?? 0; |