From a291a0c00f827ba58442ecdac6cc195685582664 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 29 Aug 2018 12:55:03 +0300 Subject: [PATCH] API: oops, forgot that headlines could be requested for a tag --- classes/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/api.php b/classes/api.php index 607a25e6..58fccdfe 100755 --- a/classes/api.php +++ b/classes/api.php @@ -186,7 +186,7 @@ class API extends Handler { function getHeadlines() { $feed_id = clean($_REQUEST["feed_id"]); - if (is_int($feed_id)) { + if ($feed_id !== "") { if (is_numeric($feed_id)) $feed_id = (int) $feed_id; -- 2.39.5