From: Andrew Dolgov Date: Thu, 15 Jun 2006 03:01:28 +0000 (+0100) Subject: fix not found error for tags & labels X-Git-Tag: 1.2.1~19 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a6b4a12a5b83acc2b27159a15fdc3724b2cfdc2b;p=tt-rss.git fix not found error for tags & labels --- 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) {