diff options
Diffstat (limited to 'backend.php')
-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>"; |