From 01aa2deae62efbafb8b234aed19875be8bcec3de Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 18 Jan 2022 15:27:43 +0100 Subject: [PATCH] Fix bad include --- htdocs/main.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index f62d1d71585..2e377a3571f 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1585,7 +1585,7 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr } // cssfile is a relative path $urlforcss = dol_buildpath($cssfile, 1); - if ($urlforcss) { + if ($urlforcss && $urlforcss != '/') { print ''."\n".''."\n"; } else { dol_syslog("Warning: module ".$modjs." declared a js path file for a file we can't find.", LOG_WARNING);