Don't always mark feed items as unread if the pubTime of the item is unknown

This commit is contained in:
Robin Appelman 2013-04-18 00:44:53 +02:00
Родитель 7480a3a20c
Коммит cce8765c8d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -138,7 +138,7 @@ class FeedBusinessLayer extends BusinessLayer {
// if the pub_date changed because we sort by id on the
// client side since this is the only reliable way to do it
// to not get weird behaviour
if($existing->getPubDate() !== $item->getPubDate()){
if($existing->getPubDate() !== (int)$item->getPubDate()){
// because the item is being replaced we need to keep
// status flags but we want the new entry to be unread