]> git.wh0rd.org Git - tt-rss.git/commitdiff
prevent feed chain-linking
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 22 Aug 2006 15:52:27 +0000 (16:52 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 22 Aug 2006 15:52:27 +0000 (16:52 +0100)
backend.php

index ddc73b972b39959698068a50cbade6dc6db1400c..c1431f1ad7e86eb712b9bf618660c5689c1fe00d 100644 (file)
                        }
 
                        $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) {