diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 4bf6279b2e5..61069d3708f 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -885,6 +885,10 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs { foreach($conf->css_modules as $key => $cssfile) { + // For compatibility and avoid error if external module use $conf->module_parts + // TODO: Removed in 3.3 + if (is_array($cssfile)) $cssfile = $cssfile[0]; + // cssfile is an absolute path print '