diff options
author | Andrew Dolgov <[email protected]> | 2006-08-22 16:52:27 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-08-22 16:52:27 +0100 |
commit | 8e83b64d80cb539063f44219c06eebaa943969ac (patch) | |
tree | cf4a6f74bc46306f64410b1a4b4d25dc6549d44f | |
parent | 1ddba2752795ec35a82645af5a1f2bcd59ada54a (diff) |
prevent feed chain-linking
-rw-r--r-- | backend.php | 3 |
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) { |