tweak the way update_on_checksum_change works

This commit is contained in:
Andrew Dolgov 2011-04-11 11:59:22 +04:00
parent 50b284b196
commit bbd34ece9a
1 changed files with 2 additions and 2 deletions

View File

@ -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");
}