prevent feed chain-linking

This commit is contained in:
Andrew Dolgov 2006-08-22 16:52:27 +01:00
parent 1ddba27527
commit 8e83b64d80
1 changed files with 2 additions and 1 deletions

View File

@ -1290,7 +1290,8 @@
}
$tmp_result = db_query($link, "SELECT id,title FROM ttrss_feeds
WHERE id != '$feed_id' AND owner_uid = ".$_SESSION["uid"]."
WHERE id != '$feed_id' AND owner_uid = ".$_SESSION["uid"]." AND
(SELECT COUNT(id) FROM ttrss_feeds AS T2 WHERE T2.id = ttrss_feeds.parent_feed) = 0
$cat_qpart ORDER BY title");
if (db_num_rows($tmp_result) > 0) {