From 8e83b64d80cb539063f44219c06eebaa943969ac Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 Aug 2006 16:52:27 +0100 Subject: [PATCH] prevent feed chain-linking --- backend.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend.php b/backend.php index ddc73b97..c1431f1a 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) { -- 2.39.5