From fbbdf7fb3ec5e96f12cce8ce94da39c4859c8cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 9 Jul 2024 19:29:35 +0200 Subject: [PATCH] fix cti (#30323) --- htdocs/core/db/DoliDB.class.php | 2 +- htdocs/user/param_ihm.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/db/DoliDB.class.php b/htdocs/core/db/DoliDB.class.php index 8895cdf83ec..d6c52dc39bb 100644 --- a/htdocs/core/db/DoliDB.class.php +++ b/htdocs/core/db/DoliDB.class.php @@ -47,7 +47,7 @@ abstract class DoliDB implements Database public $forcecollate = 'utf8_unicode_ci'; /** @var resource Resultset of last query */ - private $_results; + private $_results; // @phpstan-ignore-line /** @var bool true if connected, else false */ public $connected; diff --git a/htdocs/user/param_ihm.php b/htdocs/user/param_ihm.php index a933a7dffaa..779bcecafbc 100644 --- a/htdocs/user/param_ihm.php +++ b/htdocs/user/param_ihm.php @@ -283,6 +283,7 @@ if ($reshook < 0) { foreach ($tmparray as $key => $val) { $tmparray[$key]['data-html'] = img_picto($langs->trans($val['label']), empty($val['picto']) ? 'generic' : $val['picto'], 'class="pictofixedwidth"').$langs->trans($val['label']); $tmparray[$key]['label'] = $langs->trans($val['label']); + $tmparray[$key]['picto'] = empty($val['picto']) ? 'generic' : $val['picto']; } $head = user_prepare_head($object);