diff options
author | Andrew Dolgov <[email protected]> | 2005-11-21 14:49:15 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-21 14:49:15 +0100 |
commit | ead60402dd05a65f06e2d0fb5b59462df9c6c388 (patch) | |
tree | ee720221b1279957f43ba15a748079827c20e443 /functions.php | |
parent | 2bbd16b94779c904c65751858d91cc93bc251e8e (diff) |
per-feed filters
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/functions.php b/functions.php index f1c56e984..b9f33f2f6 100644 --- a/functions.php +++ b/functions.php @@ -217,7 +217,9 @@ $result = db_query($link, "SELECT reg_exp, (SELECT name FROM ttrss_filter_types WHERE id = filter_type) as name - FROM ttrss_filters WHERE owner_uid = $owner_uid"); + FROM ttrss_filters WHERE + owner_uid = $owner_uid AND + (feed_id IS NULL OR feed_id = '$feed')"); while ($line = db_fetch_assoc($result)) { if (!$filters[$line["name"]]) $filters[$line["name"]] = array(); |