From eb9abe840435ecaca44e13e0cea44c8a60b537eb Mon Sep 17 00:00:00 2001 From: RedDragonWebDesign Date: Tue, 6 Feb 2024 21:59:44 -0800 Subject: [PATCH] focus on just the "pressing enter" part --- src/forum/search.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/forum/search.php b/src/forum/search.php index a2efd807..38c4cdbb 100644 --- a/src/forum/search.php +++ b/src/forum/search.php @@ -63,7 +63,9 @@ $_POST['sortresults'] = 0; $_POST['sortresults_ascdesc'] = 0; - $_POST['filterboards'] = $_GET['filterboards'] ?? [0]; + if (count($_GET['filterboards']) == 0) { + $_POST['filterboards'][] = 0; + } foreach ($_GET as $key => $value) { $_POST[$key] = $_GET[$key];