fixed bug in handling null last_read values on headline update

This commit is contained in:
Andrew Dolgov 2005-08-22 12:10:30 +01:00
parent e6d1c0a06a
commit 829396cca2

View file

@ -112,7 +112,7 @@
// 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'";