]> git.wh0rd.org Git - tt-rss.git/commitdiff
fixed bug in handling null last_read values on headline update
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 22 Aug 2005 11:10:30 +0000 (12:10 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 22 Aug 2005 11:10:30 +0000 (12:10 +0100)
functions.php

index bafb8d08e8238d1d84d8e03836ca4ec82cc491ca..ef3bfa98e78b3fd5c99579a5111d2c547d288ed3 100644 (file)
 //                                     if ($md5_hash != $content_md5 && CONTENT_CHECK_MD5) 
 //                                             $unread = "true";
 
-                                       if ($md5_hash != $content_md5) {
+                                       if (!$last_read || $md5_hash != $content_md5) {
                                                $last_read = 'null';
                                        } else {
                                                $last_read = "'$last_read'";