From 729e19cecbe2aaae6a15f85b6c8fc8bfac847a9c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 24 Oct 2025 23:05:49 +0200 Subject: [PATCH] Fix warning --- htdocs/core/lib/functions.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index eb43d7a4c8a..1c8bbedbf57 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -5785,8 +5785,8 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $srco if ($type == 'main') { continue; } - // This need a lot of time, that's why enabling alternative dir like "custom" dir is not recommended - if (file_exists($dirroot . '/' . $path . '/img/' . $picto)) { + // This consumes a lot of time, that's why enabling alternative dir like "custom" dir should be avoid + if (file_exists($dirroot . '/' . $path . '/img/' . $picto) && !empty($conf->file->dol_url_root)) { $url = DOL_URL_ROOT . $conf->file->dol_url_root[$type]; break; }