summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-06-15 04:01:28 +0100
committerAndrew Dolgov <[email protected]>2006-06-15 04:01:28 +0100
commita6b4a12a5b83acc2b27159a15fdc3724b2cfdc2b (patch)
treea795721b319bcee212eb4a74f23984c8592790fb
parente33a1fdac280c4e192aac3719f1558da32255fab (diff)
fix not found error for tags & labels
-rw-r--r--backend.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/backend.php b/backend.php
index b77575723..ac53977e4 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 "<div align='center'>
- Could not display feed: feed not found.</div>";
- return;
+ if (db_num_rows($result) == 0) {
+ print "<div align='center'>
+ Feed not found.</div>";
+ return;
+ }
}
if (preg_match("/^-?[0-9][0-9]*$/", $feed) != false) {