Skip to content

Commit

Permalink
PDF viewer search bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucej committed Jan 30, 2023
1 parent 8106e73 commit f4e58a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/media/pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -853,10 +853,10 @@ public function search(string $query, int $page_from): array {
$bin + $chunk
];

foreach ($terms as $key => $term) {
foreach ($deaccented_terms as $term) {

$columns[] = "%$term%";
$columns[] = "%$deaccented_terms[$key]%";
$columns[] = "%$term%";
}

$sql_search = <<<EOT
Expand Down

0 comments on commit f4e58a2

Please sign in to comment.