diff options
| author | 2013-09-14 22:10:35 +0200 | |
|---|---|---|
| committer | 2013-09-14 22:10:35 +0200 | |
| commit | e19695e14bdf3ea1baf04141f346060751eb1789 (patch) | |
| tree | 40245c312911e2dddf9d7c1cc20540b9a16328a1 | |
| parent | d9975d86a2d159c0f2442b9ee02f0523b8577af3 (diff) | |
Issue #155 : correction fonction _nbNotRead
intval renvoyant toujours un integer, le test is_int() passait toujours,
c'est corrigé maintenant
| -rw-r--r-- | app/models/Feed.php | 7 |
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 () { |
