From 67e83007f63af8698755dd7714f5793052ec1d8e Mon Sep 17 00:00:00 2001 From: AlexisHenry Date: Tue, 20 Dec 2022 12:13:46 +0100 Subject: [PATCH] fix: search --- services/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/dashboard.php b/services/dashboard.php index 10471ad..937242a 100644 --- a/services/dashboard.php +++ b/services/dashboard.php @@ -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