make sure all ints are casted (to int) on getCategories

This commit is contained in:
Paco Esteban 2020-07-31 16:15:16 +02:00
parent 376fe6271d
commit 3da618e0ea
1 changed files with 2 additions and 2 deletions

View File

@ -160,9 +160,9 @@ class API extends Handler {
$unread += Feeds::getCategoryChildrenUnread($line["id"]);
if ($unread || !$unread_only) {
array_push($cats, array("id" => $line["id"],
array_push($cats, array("id" => (int) $line["id"],
"title" => $line["title"],
"unread" => $unread,
"unread" => (int) $unread,
"order_id" => (int) $line["order_id"],
));
}