From a6b4a12a5b83acc2b27159a15fdc3724b2cfdc2b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 15 Jun 2006 04:01:28 +0100 Subject: [PATCH] fix not found error for tags & labels --- backend.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/backend.php b/backend.php index b7757572..ac53977e 100644 --- a/backend.php +++ b/backend.php @@ -721,13 +721,15 @@ } } - $result = db_query($link, - "SELECT id FROM ttrss_feeds WHERE id = '$feed' LIMIT 1"); + if ($feed_id > 0) { + $result = db_query($link, + "SELECT id FROM ttrss_feeds WHERE id = '$feed' LIMIT 1"); - if (db_num_rows($result) == 0) { - print "
- Could not display feed: feed not found.
"; - return; + if (db_num_rows($result) == 0) { + print "
+ Feed not found.
"; + return; + } } if (preg_match("/^-?[0-9][0-9]*$/", $feed) != false) { -- 2.39.5