From ad2844d2f02d537d9f13e52e29a7b19bf2426f15 Mon Sep 17 00:00:00 2001 From: Gauthier PC portable 024 Date: Wed, 6 Oct 2021 15:55:59 +0200 Subject: [PATCH] FIX : cast int --- htdocs/hrm/class/skillrank.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/hrm/class/skillrank.class.php b/htdocs/hrm/class/skillrank.class.php index 500f61a8a36..bcb9b55476d 100644 --- a/htdocs/hrm/class/skillrank.class.php +++ b/htdocs/hrm/class/skillrank.class.php @@ -931,7 +931,7 @@ class SkillRank extends CommonObject $this->lines = array(); $objectline = new SkillRankLine($this->db); - $result = $objectline->fetchAll('ASC', 'position', 0, 0, array('customsql'=>'fk_skillrank = '.$this->id)); + $result = $objectline->fetchAll('ASC', 'position', 0, 0, array('customsql'=>'fk_skillrank = '.((int)$this->id))); if (is_numeric($result)) { $this->error = $this->error;