API: oops, forgot that headlines could be requested for a tag
This commit is contained in:
parent
70e180e887
commit
a291a0c00f
|
@ -186,7 +186,7 @@ class API extends Handler {
|
||||||
|
|
||||||
function getHeadlines() {
|
function getHeadlines() {
|
||||||
$feed_id = clean($_REQUEST["feed_id"]);
|
$feed_id = clean($_REQUEST["feed_id"]);
|
||||||
if (is_int($feed_id)) {
|
if ($feed_id !== "") {
|
||||||
|
|
||||||
if (is_numeric($feed_id)) $feed_id = (int) $feed_id;
|
if (is_numeric($feed_id)) $feed_id = (int) $feed_id;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue