Fix fatal error on skill_card

This commit is contained in:
Hystepik 2024-03-27 12:55:06 +01:00
parent 1b98d99434
commit 48a8ce6612

View file

@ -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();