Skip to content

Commit

Permalink
fix correct key
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Oct 13, 2023
1 parent 774d1e2 commit 814a53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repository/BookRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private function convertResults(mixed $intermediateResults): array
foreach ($intermediateResults as $result) {
foreach ($result['item'] as $item) {
$key = ucwords(strtolower($item), Book::UCWORDS_SEPARATORS);
if (!array_key_exists($item, $results)) {
if (!array_key_exists($key, $results)) {
$results[$key] = [
'item' => $key,
'bookCount' => 0,
Expand Down

0 comments on commit 814a53d

Please sign in to comment.