Skip to content

Commit

Permalink
fix search not remembering board
Browse files Browse the repository at this point in the history
  • Loading branch information
bui committed Jul 7, 2017
1 parent d3cb413 commit 1c4b67a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$boards = listBoards(TRUE);
}

$body = Element('search_form.html', Array('boards' => $boards, 'b' => isset($_GET['board']) ? $_GET['board'] : false, 'search' => isset($_GET['search']) ? str_replace('"', '"', utf8tohtml($_GET['search'])) : false));
$body = Element('search_form.html', Array('boards' => $boards, 'board' => isset($_GET['board']) ? $_GET['board'] : false, 'search' => isset($_GET['search']) ? str_replace('"', '"', utf8tohtml($_GET['search'])) : false));

if(isset($_GET['search']) && !empty($_GET['search']) && isset($_GET['board']) && in_array($_GET['board'], $boards)) {
$phrase = $_GET['search'];
Expand Down

0 comments on commit 1c4b67a

Please sign in to comment.