1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:15:56 +00:00

more int/string type mismatches on getCategories

This commit is contained in:
Paco Esteban
2020-08-01 16:30:10 +02:00
parent 86ba8a96c4
commit c4ee0e25a1

View File

@@ -174,9 +174,9 @@ class API extends Handler {
$unread = getFeedUnread($cat_id, true); $unread = getFeedUnread($cat_id, true);
if ($unread || !$unread_only) { if ($unread || !$unread_only) {
array_push($cats, array("id" => $cat_id, array_push($cats, array("id" => (int) $cat_id,
"title" => Feeds::getCategoryTitle($cat_id), "title" => Feeds::getCategoryTitle($cat_id),
"unread" => $unread)); "unread" => (int) $unread));
} }
} }
} }