From d12700aeabbe230c1654b3cff929b289a321e611 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 2 Sep 2012 12:28:36 +0200 Subject: [PATCH] Fix: for compatibility and avoid error if external module use $conf->module_parts --- htdocs/main.inc.php | 4 ++++ 1 file changed, 4 insertions(+) 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 '