]> git.wh0rd.org - tt-rss.git/commitdiff
disallow ability to link the feed to itself
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 30 Dec 2005 20:31:34 +0000 (21:31 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 30 Dec 2005 20:31:34 +0000 (21:31 +0100)
backend.php

index a7066755d56ca0a4923a2dbf4b977d11c205cde0..52b4f34600f856dfc22c42e0c46172251ec5717c 100644 (file)
 
                        $linked_count = db_fetch_result($tmp_result, 0, "count");
 
-
                        $parent_feed = db_fetch_result($result, 0, "parent_feed");
 
                        if ($linked_count > 0) {
                        }
 
                        $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>";