Fix travis

This commit is contained in:
Laurent Destailleur 2020-08-14 11:53:54 +02:00
parent 52f20a1047
commit fe0b1c5ee4

View File

@ -777,7 +777,9 @@ class Categorie extends CommonObject
}
else
{
$obj = new $this->MAP_OBJ_CLASS[$type]( $this->db );
$classnameforobj = $this->MAP_OBJ_CLASS[$type];
$obj = new $classnameforobj($this->db);
$obj->fetch($rec['fk_' . $this->MAP_CAT_FK[$type]]);
$objs[] = $obj;
}