mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 00:05:56 +00:00
api, getHeadlines: properly accept feed_id 0
This commit is contained in:
@@ -188,7 +188,7 @@ class API extends Handler {
|
||||
function getHeadlines(): bool {
|
||||
$feed_id = clean($_REQUEST["feed_id"] ?? "");
|
||||
|
||||
if (!empty($feed_id)) {
|
||||
if (!empty($feed_id) || is_numeric($feed_id)) { // is_numeric for feed_id "0"
|
||||
$limit = (int)clean($_REQUEST["limit"] ?? 0 );
|
||||
|
||||
if (!$limit || $limit >= 200) $limit = 200;
|
||||
|
||||
Reference in New Issue
Block a user