Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
fix: search
Browse files Browse the repository at this point in the history
  • Loading branch information
AlxisHenry committed Dec 20, 2022
1 parent 247e37e commit 67e8300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function getItemsCorrespondingToSearch(string $search): array
*/
foreach (getCategories() as $category) {
foreach (getCategoryItems($category) as $item) {
if (strpos(strtolower($item), strtolower($item)) !== false) {
if (strpos(strtolower($item), strtolower($search)) !== false) {
$items[] = [
'category' => $category,
'filename' => $item
Expand Down

0 comments on commit 67e8300

Please sign in to comment.