summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-30 21:31:34 +0100
committerAndrew Dolgov <[email protected]>2005-12-30 21:31:34 +0100
commit262c2426c5962b003424917f3e8c5283b1e3f0b6 (patch)
tree465534d1b5129e4b9da286198d7ee44c24c337a1 /backend.php
parent9b1424fe9682fe699374bb6752374f830adbd123 (diff)
disallow ability to link the feed to itself
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index a7066755d..52b4f3460 100644
--- a/backend.php
+++ b/backend.php
@@ -1697,7 +1697,6 @@
$linked_count = db_fetch_result($tmp_result, 0, "count");
-
$parent_feed = db_fetch_result($result, 0, "parent_feed");
if ($linked_count > 0) {
@@ -1717,7 +1716,8 @@
}
$tmp_result = db_query($link, "SELECT id,title FROM ttrss_feeds
- WHERE owner_uid = ".$_SESSION["uid"]." $cat_qpart ORDER BY title");
+ WHERE id != '$feed_id' AND owner_uid = ".$_SESSION["uid"]."
+ $cat_qpart ORDER BY title");
if (db_num_rows($tmp_result) > 0) {
print "<option disabled>--------</option>";