]> git.wh0rd.org Git - tt-rss.git/commitdiff
tweak the way update_on_checksum_change works
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 11 Apr 2011 07:59:22 +0000 (11:59 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 11 Apr 2011 07:59:22 +0000 (11:59 +0400)
functions.php

index 7c3e8d0a30134390fe92502431b049c945ef60f3..0c590054231ccb398ef2e3bbedf563385d549c05 100644 (file)
 
                                        $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;
                                        }
                                                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");
                                                }