summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/Feed.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php
index f72008c05..061a6a33a 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -167,11 +167,12 @@ class Feed extends Model {
}
$this->keep_history = $value;
}
- public function _nbNotRead ($value) { //Alex
- if (!is_int (intval ($value))) {
+ public function _nbNotRead ($value) {
+ if (!is_int ($value)) {
$value = -1;
}
- $this->nbNotRead = $value;
+
+ $this->nbNotRead = intval ($value);
}
public function load () {