diff options
| author | 2013-12-27 14:11:17 +0100 | |
|---|---|---|
| committer | 2013-12-27 14:11:17 +0100 | |
| commit | b99979cef78f7cd0c1cb4ae81115d09881e85926 (patch) | |
| tree | 7c8235198b6b587574b41175a167103d31740a9a /app/Models/Feed.php | |
| parent | ab3cc9be569471b2bdc45ba2f095f621c5549143 (diff) | |
Bug affichage ID category introduit récemment
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 0f467f776..32f8546dd 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -136,7 +136,8 @@ class FreshRSS_Feed extends Minz_Model { $this->url = $value; } public function _category ($value) { - $this->category = $value; + $value = intval($value); + $this->category = $value >= 0 ? $value : 0; } public function _name ($value) { if (is_null ($value)) { |
