From 829396cca2dfbe66354c2246521e660efb13fd6c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Aug 2005 12:10:30 +0100 Subject: [PATCH] fixed bug in handling null last_read values on headline update --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index bafb8d08e..ef3bfa98e 100644 --- a/functions.php +++ b/functions.php @@ -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'";