From b1aac20839f6e1f3e733774eeb5984ce7b08c246 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 3 May 2020 13:39:16 +0200 Subject: Fever integer type for numbers (#2946) * Fever integer type for feed ID #Fix https://github.com/FreshRSS/FreshRSS/issues/2940#issuecomment-623022435 * Fix feed_id * Ensure string for entry ID To be compatible with 32-bit platforms. Before, the type was inconsistent depending on architecture + database * Integer for entry count functions --- app/Models/Category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models/Category.php') diff --git a/app/Models/Category.php b/app/Models/Category.php index 6956029ad..cee137138 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -78,7 +78,7 @@ class FreshRSS_Category extends Minz_Model { } public function _id($id) { - $this->id = $id; + $this->id = intval($id); if ($id == FreshRSS_CategoryDAO::DEFAULTCATEGORYID) { $this->_name(_t('gen.short.default_category')); } -- cgit v1.2.3