diff options
author | Andrew Dolgov <[email protected]> | 2007-08-26 05:18:41 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-26 05:18:41 +0100 |
commit | a8ae1b9a74b19a3b18f47ae0b260a668ebcf41b5 (patch) | |
tree | 5725960869ea960c55e6d678ea5735af464b73e2 | |
parent | b02bbd13ae3b8104c16255e3f9947d0e6d6df568 (diff) |
clear_feed_articles: check caller UID
-rw-r--r-- | functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.php b/functions.php index cf5d421c9..d82cb38ea 100644 --- a/functions.php +++ b/functions.php @@ -4698,7 +4698,7 @@ function clear_feed_articles($link, $id) { $result = db_query($link, "DELETE FROM ttrss_user_entries - WHERE feed_id = '$id' AND marked = false"); + WHERE feed_id = '$id' AND marked = false AND owner_uid = " . $_SESSION["uid"]); $result = db_query($link, "DELETE FROM ttrss_entries WHERE (SELECT COUNT(int_id) FROM ttrss_user_entries WHERE ref_id = id) = 0"); |