From 3043a9d2baa76ac295f232bad24e07a9e33b4c4c Mon Sep 17 00:00:00 2001 From: BigKev73 <77700018+BigKev73@users.noreply.github.com> Date: Wed, 27 Mar 2024 10:21:55 -0500 Subject: [PATCH] Update search.php Change from getInt to getVar. The getInt causes the forum array value to become null as its a type mismatch, which means the search with a forum filter never works. So, it defaults to all forums. --- search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search.php b/search.php index 1fe5abd..d64278f 100644 --- a/search.php +++ b/search.php @@ -77,7 +77,7 @@ $next_search['selectlength'] = $selectlength; $start = Request::getInt('start', 0); - $forum = Request::getInt('forum', null); + $forum = Request::getVar('forum', null); if (empty($forum) || 'all' === $forum || (is_array($forum) && in_array('all', $forum, true))) { $forum = []; } elseif (!is_array($forum)) {