Browse Source

API: oops, forgot that headlines could be requested for a tag

Andrew Dolgov 2 years ago
parent
commit
a291a0c00f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/api.php

+ 1 - 1
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;