From 48a8ce6612afebf8d38fbbb084fe6743ac68611c Mon Sep 17 00:00:00 2001 From: Hystepik Date: Wed, 27 Mar 2024 12:55:06 +0100 Subject: [PATCH] Fix fatal error on skill_card --- htdocs/hrm/class/skill.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/hrm/class/skill.class.php b/htdocs/hrm/class/skill.class.php index 4ce76501127..0bc5903fdcf 100644 --- a/htdocs/hrm/class/skill.class.php +++ b/htdocs/hrm/class/skill.class.php @@ -408,7 +408,7 @@ class Skill extends CommonObject $this->lines = array(); require_once __DIR__ . '/skilldet.class.php'; $skilldet = new Skilldet($this->db); - $this->lines = $skilldet->fetchAll('ASC', '', '', '', array('fk_skill' => $this->id), ''); + $this->lines = $skilldet->fetchAll('ASC', '', '', '', 'fk_skill:=:'.$this->id, ''); if (is_array($this->lines)) { return (count($this->lines) > 0) ? $this->lines : array();