Index: index.php
===================================================================
--- index.php	(revision 20528)
+++ index.php	(working copy)
@@ -253,7 +253,8 @@
     {
         $as_html = true;
 
-        if ( $ini->variable( "DebugSettings", "DebugToolbar" ) == 'enabled' && $as_html == true && !$GLOBALS['eZRedirection'] )
+        if ( $ini->variable( "DebugSettings", "DebugToolbar" ) == 'enabled' && $as_html == true && !$GLOBALS['eZRedirection']
+             && $ini->variable( 'SiteAccessSettings', 'CheckValidity' ) !== 'true' )
         {
             require_once( 'kernel/common/template.php' );
             $tpl = templateInit();
