Skip to content

Commit

Permalink
search: fix fatal error when using $_GET
Browse files Browse the repository at this point in the history
  • Loading branch information
RedDragonWebDesign committed Feb 7, 2024
1 parent aef24b6 commit fbeafb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/forum/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit fbeafb4

Please sign in to comment.