From 283e33c40e9df9720de61349dabea837ce70ccd4 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sat, 23 Mar 2024 05:22:05 -0700 Subject: [PATCH] Fix search bug that would search section instead of group for header searches. --- Rocksolid_Light/rocksolid/search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rocksolid_Light/rocksolid/search.php b/Rocksolid_Light/rocksolid/search.php index cf00815..004247e 100644 --- a/Rocksolid_Light/rocksolid/search.php +++ b/Rocksolid_Light/rocksolid/search.php @@ -318,8 +318,8 @@ function get_header_search($group, $terms) GLOBAL $CONFIG, $config_name, $spooldir, $snippet_size; $terms = preg_replace('/\%/', '\%', $terms); $searchterms = "%" . $terms . "%"; - if (isset($search_group) && $_POST['searchpoint'] != 'msgid') { - $grouplist[0] = $search_group; + if (isset($group) && $_POST['searchpoint'] != 'msgid') { + $grouplist[0] = $group; } elseif ($_POST['searchpoint'] != 'msgid') { $local_groupfile = $spooldir . "/" . $config_name . "/local_groups.txt"; $grouplist = file($local_groupfile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);