diff --git a/htdocs/core/lib/website.lib.php b/htdocs/core/lib/website.lib.php index ddc4201427e..6608475f1fb 100644 --- a/htdocs/core/lib/website.lib.php +++ b/htdocs/core/lib/website.lib.php @@ -453,7 +453,7 @@ function dolSavePageContent($filetpl, $object, $objectpage) $tplcontent.= ''."\n"; $tplcontent.= 'ref.'/htmlheader.html"); ?>'."\n"; $tplcontent.= ''."\n"; - $tplcontent.= preg_match('/<\/?html>/', '', $objectpage->htmlheader)."\n"; + $tplcontent.= preg_replace('/<\/?html>/', '', $objectpage->htmlheader)."\n"; $tplcontent.= ''."\n"; $tplcontent.= ''."\n";