summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-08-22 16:52:27 +0100
committerAndrew Dolgov <[email protected]>2006-08-22 16:52:27 +0100
commit8e83b64d80cb539063f44219c06eebaa943969ac (patch)
treecf4a6f74bc46306f64410b1a4b4d25dc6549d44f /backend.php
parent1ddba2752795ec35a82645af5a1f2bcd59ada54a (diff)
prevent feed chain-linking
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index ddc73b972..c1431f1ad 100644
--- a/backend.php
+++ b/backend.php
@@ -1290,7 +1290,8 @@
}
$tmp_result = db_query($link, "SELECT id,title FROM ttrss_feeds
- WHERE id != '$feed_id' AND owner_uid = ".$_SESSION["uid"]."
+ WHERE id != '$feed_id' AND owner_uid = ".$_SESSION["uid"]." AND
+ (SELECT COUNT(id) FROM ttrss_feeds AS T2 WHERE T2.id = ttrss_feeds.parent_feed) = 0
$cat_qpart ORDER BY title");
if (db_num_rows($tmp_result) > 0) {