From 73e61749feaa6d89d1e81ef59d72a1020488f7fb Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 8 Aug 2023 14:29:24 +0200 Subject: [PATCH] search filters optimized, fetch authors only once from db --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index e922cb23a..23cea9d01 100644 --- a/index.php +++ b/index.php @@ -225,7 +225,7 @@ SELECT { $author_names[] = $author['author']; } - $template->assign('AUTHORS', query2array($query)); + $template->assign('AUTHORS', $authors); // in case the search has forbidden authors for current user, we need to filter the search rule $my_search['fields']['author']['words'] = array_intersect($my_search['fields']['author']['words'], $author_names);