summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-11 11:59:22 +0400
committerAndrew Dolgov <[email protected]>2011-04-11 11:59:22 +0400
commitbbd34ece9a51fd73fe419a64e7857c38f045777b (patch)
treee33e03051fce1ace19a96eed66b2a88c092908eb /functions.php
parent50b284b19665329fe7f81876105705db4a2e6340 (diff)
tweak the way update_on_checksum_change works
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index 7c3e8d0a3..0c5900542 100644
--- a/functions.php
+++ b/functions.php
@@ -1271,7 +1271,7 @@
$post_needs_update = false;
- if ($update_on_checksum_change && $content_hash != $orig_content_hash) {
+ if ($content_hash != $orig_content_hash) {
// print "<!-- [$entry_title] $content_hash vs $orig_content_hash -->";
$post_needs_update = true;
}
@@ -1309,7 +1309,7 @@
if ($mark_unread_on_update) {
db_query($link, "UPDATE ttrss_user_entries
SET last_read = null, unread = true WHERE ref_id = '$ref_id'");
- } else {
+ } else if ($update_on_checksum_change) {
db_query($link, "UPDATE ttrss_user_entries
SET last_read = null WHERE ref_id = '$ref_id' AND unread = false");
}