mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-24 05:51:28 +00:00
disallow ability to link the feed to itself
This commit is contained in:
@@ -1697,7 +1697,6 @@
|
||||
|
||||
$linked_count = db_fetch_result($tmp_result, 0, "count");
|
||||
|
||||
|
||||
$parent_feed = db_fetch_result($result, 0, "parent_feed");
|
||||
|
||||
if ($linked_count > 0) {
|
||||
@@ -1717,7 +1716,8 @@
|
||||
}
|
||||
|
||||
$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>";
|
||||
|
||||
Reference in New Issue
Block a user