diff options
author | Andrew Dolgov <[email protected]> | 2005-12-28 20:57:25 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-12-28 20:57:25 +0100 |
commit | 8a53e02994c751b4085b0480f908826150c21d03 (patch) | |
tree | aa47570ae9e42057b89084230e47d99e60d70fe7 | |
parent | 601030890f0b9750ff282f7dd805eebbf15ca7a3 (diff) |
only allow linking to feeds in the same category
-rw-r--r-- | backend.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/backend.php b/backend.php index 9de96a1ef..f159b9a8f 100644 --- a/backend.php +++ b/backend.php @@ -1540,8 +1540,16 @@ print "<select id=\"iedit_parent_feed\">"; print "<option id=\"0\">None</option>"; + if (get_pref($link, 'ENABLE_FEED_CATS')) { + if ($cat_id) { + $cat_qpart = "AND cat_id = '$cat_id'"; + } else { + $cat_qpart = "AND cat_id IS NULL"; + } + } + $tmp_result = db_query($link, "SELECT id,title FROM ttrss_feeds - WHERE owner_uid = ".$_SESSION["uid"]." ORDER BY title"); + WHERE owner_uid = ".$_SESSION["uid"]." $cat_qpart ORDER BY title"); if (db_num_rows($tmp_result) > 0) { print "<option disabled>--------</option>"; |