diff options
Diffstat (limited to 'lib/item.php')
-rw-r--r-- | lib/item.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/item.php b/lib/item.php index ff3655e04..64ae368c3 100644 --- a/lib/item.php +++ b/lib/item.php @@ -36,7 +36,12 @@ class OC_News_Item { $this->url = $url; $this->guid = $guid; $this->body = $body; - $this->status |= StatusFlag::Unread; + if ($id == null) { + $this->status |= StatusFlag::Unread; + } + else { + $this->id = $id; + } } public function getGuid(){ |