diff options
author | Andrew Dolgov <[email protected]> | 2010-01-20 13:55:26 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-01-20 13:55:26 +0300 |
commit | c633e370ec9b98731dff95045ddb12ff4e53092f (patch) | |
tree | c0e5aa3da3ed0fa25999c6bc73ab896fdfbbafef /modules | |
parent | 6e4f0519b75034144cd6b538f64c10f0759be595 (diff) |
update_rss_feed: handle multiple feeds with the same URL at once
Diffstat (limited to 'modules')
-rw-r--r-- | modules/backend-rpc.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index f994c3e8f..d95685a72 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -286,14 +286,7 @@ if ($subop == "updateFeed") { $feed_id = db_escape_string($_REQUEST["feed"]); - $result = db_query($link, - "SELECT feed_url FROM ttrss_feeds WHERE id = '$feed_id' - AND owner_uid = " . $_SESSION["uid"]); - - if (db_num_rows($result) > 0) { - $feed_url = db_fetch_result($result, 0, "feed_url"); - update_rss_feed($link, $feed_url, $feed_id); - } + update_rss_feed($link, $feed_id); print "<rpc-reply>"; print "<counters>"; |