Skip to content

Commit

Permalink
search: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RedDragonWebDesign committed Feb 7, 2024
1 parent 6f270a8 commit 0fbffaa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/forum/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function check_filter_boards() {
$breadcrumbObj->addCrumb("Forum", $MAIN_ROOT."forum");
$breadcrumbObj->addCrumb("Search Forum");

// $_POST is the method for doing advanced searches. But there is also a limited $_GET search for searching all of a user's posts. If using $_GET search, set the $_POST variables here.
if (count($_GET) > 0) {
$_POST['fakesearchuser'] = $_GET['searchuser'];
$_POST['checkCSRF'] = $_SESSION['csrfKey'];
Expand Down Expand Up @@ -123,6 +124,7 @@ function check_filter_boards() {

$memberList = json_encode($arrMemberList);

// Populate the $filterBoardOptions variable, which contains the list of boards to include in the Filter Boards <select> element
$filterBoardOptions[0] = "Search All Boards";
$result = $mysqli->query("SELECT ".$dbprefix."forum_board.forumboard_id FROM ".$dbprefix."forum_board, ".$dbprefix."forum_category WHERE ".$dbprefix."forum_board.forumcategory_id = ".$dbprefix."forum_category.forumcategory_id AND ".$dbprefix."forum_board.subforum_id = '0' ORDER BY ".$dbprefix."forum_category.ordernum DESC, ".$dbprefix."forum_board.sortnum");
while ($row = $result->fetch_assoc()) {
Expand Down

0 comments on commit 0fbffaa

Please sign in to comment.