diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-07 21:52:41 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-07 21:52:41 -0400 |
commit | 4b154de4526d25fe810f1f371d9707789994e858 (patch) | |
tree | 77d17e41eb269a73550f263fce26ed12301fc183 /lib/item.php | |
parent | 5754af967cb92c49ae90c544725eb5a9ed33fc59 (diff) |
mark as read item working now
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(){ |