make sure all ints are casted (to int) on getCategories
This commit is contained in:
parent
376fe6271d
commit
3da618e0ea
|
@ -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"],
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue