From b005b68acdbb7c049bde3ca4cfeac1b7945caab7 Mon Sep 17 00:00:00 2001 From: deepend Date: Tue, 30 Jan 2024 02:39:31 -0700 Subject: [PATCH 1/3] fix fatal error when searching + issue #114 solution. --- src/forum/search.php | 4 +--- src/forum/templates/searchform.php | 9 ++++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/forum/search.php b/src/forum/search.php index 38c4cdbb..a2efd807 100644 --- a/src/forum/search.php +++ b/src/forum/search.php @@ -63,9 +63,7 @@ $_POST['sortresults'] = 0; $_POST['sortresults_ascdesc'] = 0; - if (count($_GET['filterboards']) == 0) { - $_POST['filterboards'][] = 0; - } + $_POST['filterboards'] = $_GET['filterboards'] ?? [0]; foreach ($_GET as $key => $value) { $_POST[$key] = $_GET[$key]; diff --git a/src/forum/templates/searchform.php b/src/forum/templates/searchform.php index 27cf2469..6bb78038 100644 --- a/src/forum/templates/searchform.php +++ b/src/forum/templates/searchform.php @@ -23,12 +23,15 @@ echo " -
+
+
- ".$searchLabel.": + ".$searchLabel.":
Advanced Search
-
+ ".$addToURL." + +