From fbeafb47c65f67ddf8e6b5ef9673c233426eb84f Mon Sep 17 00:00:00 2001 From: RedDragonWebDesign Date: Tue, 6 Feb 2024 22:53:11 -0800 Subject: [PATCH] search: fix fatal error when using $_GET --- src/forum/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/forum/search.php b/src/forum/search.php index d78f878..174e85a 100644 --- a/src/forum/search.php +++ b/src/forum/search.php @@ -97,7 +97,7 @@ function check_filter_boards() { $_POST['sortresults'] = 0; $_POST['sortresults_ascdesc'] = 0; - if (count($_GET['filterboards']) == 0) { + if (count($_GET['filterboards'] ?? []) == 0) { $_POST['filterboards'][] = 0; // 0 means search all boards }