From c4ee0e25a1da93e489bae0ae372c17a0cc2d5bce Mon Sep 17 00:00:00 2001 From: Paco Esteban Date: Sat, 1 Aug 2020 16:30:10 +0200 Subject: [PATCH] more int/string type mismatches on getCategories --- classes/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/api.php b/classes/api.php index 72a5163f7..eda79df45 100755 --- a/classes/api.php +++ b/classes/api.php @@ -174,9 +174,9 @@ class API extends Handler { $unread = getFeedUnread($cat_id, true); if ($unread || !$unread_only) { - array_push($cats, array("id" => $cat_id, + array_push($cats, array("id" => (int) $cat_id, "title" => Feeds::getCategoryTitle($cat_id), - "unread" => $unread)); + "unread" => (int) $unread)); } } }