A free, self-hostable news aggregator…
Issue #155 : correction fonction _nbNotRead
Marien Fressinaude19695e14bdf
diff --git a/app/models/Feed.php b/app/models/Feed.phpindex 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 () {