From 1a0616562db5c096dc7ca187f0210b3d57bffebf Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 22 Mar 2023 08:26:39 +0100 Subject: Remove FreshRSS_Searchable for better types (#5212) * Remove FreshRSS_Searchable for better types The interface was not used, and it was preventing more precise types for the different `searchById()` methods, as they each have different input and output types. * Fix type --- p/api/fever.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p/api/fever.php') diff --git a/p/api/fever.php b/p/api/fever.php index c83b28da3..1bc7068ab 100644 --- a/p/api/fever.php +++ b/p/api/fever.php @@ -474,7 +474,7 @@ final class FeverAPI $group_ids = explode(',', $_REQUEST['group_ids']); $feeds = []; foreach ($group_ids as $id) { - $category = $categoryDAO->searchById($id); //TODO: Transform to SQL query without loop! Consider FreshRSS_CategoryDAO::listCategories(true) + $category = $categoryDAO->searchById((int)$id); //TODO: Transform to SQL query without loop! Consider FreshRSS_CategoryDAO::listCategories(true) if ($category == null) { continue; } -- cgit v1.2.3