mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 21:35:55 +00:00
make sure all ints are casted (to int) on getCategories
This commit is contained in:
@@ -160,9 +160,9 @@ class API extends Handler {
|
|||||||
$unread += Feeds::getCategoryChildrenUnread($line["id"]);
|
$unread += Feeds::getCategoryChildrenUnread($line["id"]);
|
||||||
|
|
||||||
if ($unread || !$unread_only) {
|
if ($unread || !$unread_only) {
|
||||||
array_push($cats, array("id" => $line["id"],
|
array_push($cats, array("id" => (int) $line["id"],
|
||||||
"title" => $line["title"],
|
"title" => $line["title"],
|
||||||
"unread" => $unread,
|
"unread" => (int) $unread,
|
||||||
"order_id" => (int) $line["order_id"],
|
"order_id" => (int) $line["order_id"],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user