only allow linking to feeds in the same category
This commit is contained in:
parent
601030890f
commit
8a53e02994
1 changed files with 9 additions and 1 deletions
10
backend.php
10
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>";
|
||||
|
|
Loading…
Reference in a new issue