diff --git a/htdocs/core/lib/website.lib.php b/htdocs/core/lib/website.lib.php index 948754ec57a..0b3a20084e2 100644 --- a/htdocs/core/lib/website.lib.php +++ b/htdocs/core/lib/website.lib.php @@ -678,10 +678,10 @@ function includeContainer($containerref, $once = 0, $cachedelay = 0) } print $tmpoutput; - } - if (!$res) { - print 'ERROR: FAILED TO INCLUDE PAGE '.$containerref."(once=".$once.")\n"; + if (!$res) { + print 'ERROR: FAILED TO INCLUDE PAGE '.$containerref."(once=".$once.")\n"; + } } $includehtmlcontentopened--;