? boost-598044.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.167
diff -u -p -r1.3.2.2.2.5.2.167 boost.module
--- boost.module	6 Oct 2009 22:05:07 -0000	1.3.2.2.2.5.2.167
+++ boost.module	7 Oct 2009 18:37:35 -0000
@@ -623,12 +623,12 @@ function boost_block($op = 'list', $delt
             }
             $drupal_msg = max(count(drupal_get_messages(NULL, FALSE)), $GLOBALS['_boost_message_count']);
 
-            if ((BOOST_HALT_ON_ERRORS || BOOST_HALT_ON_MESSAGES) && ($error || $drupal_msg != 0)) {
+            if ((BOOST_HALT_ON_ERRORS && $error) || (BOOST_HALT_ON_MESSAGES && $drupal_msg != 0)) {
               $output = t('There are <strong>php errors</strong> or <strong>drupal messages</strong> on this page, preventing boost from caching.');
-              if ($error) {
+              if (BOOST_HALT_ON_ERRORS && $error) {
                 $output .= t(' ERROR: <pre>%error</pre> !link <br /> !performance', array('%error' => boost_print_r($error, TRUE), '!link' => l(t('Lookup Error Type'), 'http://php.net/errorfunc.constants'), '!performance' => l(t('Turn Off Error Checking'), 'admin/settings/performance')));
               }
-              if ($drupal_msg != 0) {
+              if (BOOST_HALT_ON_MESSAGES && $drupal_msg != 0) {
                 $output .= t(' MESSAGES: %msg <br /> !performance', array('%msg' => $drupal_msg, '!performance' => l(t('Turn Off Error Checking'), 'admin/settings/performance')));
               }
             }
