aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-05-09 13:08:29 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-05-09 13:08:29 +0200
commit8759fa6c6801f8260f0cc673005a2ecf994726f9 (patch)
tree0177f08af689e086a539ebecad0e7bf4adf1719e /app/Models/Entry.php
parent6ba3257b18c191358f24ccfa8aff93f804916eb2 (diff)
parent7f7de31c1dcb6599be5c5713f36b4bde1d03d47a (diff)
Merge remote-tracking branch 'origin/sql_hash_lastUpdate' into dev
Diffstat (limited to 'app/Models/Entry.php')
-rw-r--r--app/Models/Entry.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index 6931c9f25..a562a963a 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -15,7 +15,7 @@ class FreshRSS_Entry extends Minz_Model {
private $link;
private $date;
private $hash = null;
- private $is_read;
+ private $is_read; //Nullable boolean
private $is_favorite;
private $feed;
private $tags;
@@ -125,7 +125,7 @@ class FreshRSS_Entry extends Minz_Model {
$this->date = $value > 1 ? $value : time();
}
public function _isRead($value) {
- $this->is_read = $value;
+ $this->is_read = $value === null ? null : (bool)$value;
}
public function _isFavorite($value) {
$this->is_favorite = $value;