Browse Source

more int/string type mismatches on getCategories

Paco Esteban 1 month ago
parent
commit
c4ee0e25a1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      classes/api.php

+ 2 - 2
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));
 				}
 			}
 		}