summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-07 15:03:30 +0100
committerAndrew Dolgov <[email protected]>2005-09-07 15:03:30 +0100
commitdeaaa02c504a685ea383b203e1432fadd01d1a27 (patch)
treeceb1bd4e8715e79a57cb00f0c7fb5131f5b27b17 /functions.php
parent77a1bf8b833c0f3f24b918606e3e8b00a0ebce01 (diff)
fixed viewfeed/MarkAllRead behaviour
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php14
1 files changed, 2 insertions, 12 deletions
diff --git a/functions.php b/functions.php
index 742e026f5..5736c016e 100644
--- a/functions.php
+++ b/functions.php
@@ -17,17 +17,7 @@
db_query($link, "BEGIN");
- if (!$fetch) {
-
- $result = db_query($link, "SELECT feed_url,id FROM ttrss_feeds WHERE
- last_updated is null OR title = '' OR
- EXTRACT(EPOCH FROM NOW()) - EXTRACT(EPOCH FROM last_updated) > " .
- MIN_UPDATE_TIME);
-
- } else {
-
- $result = db_query($link, "SELECT feed_url,id FROM ttrss_feeds");
- }
+ $result = db_query($link, "SELECT feed_url,id FROM ttrss_feeds");
while ($line = db_fetch_assoc($result)) {
update_rss_feed($link, $line["feed_url"], $line["id"]);
@@ -207,7 +197,7 @@
content,
content_hash,
feed_id,
- comments,
+ comments,
no_orig_date)
VALUES
('$entry_title',