? boost-480266.patch Index: boost.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v retrieving revision 1.3.2.2.2.5.2.43 diff -u -p -r1.3.2.2.2.5.2.43 boost.module --- boost.module 2 Jun 2009 20:08:47 -0000 1.3.2.2.2.5.2.43 +++ boost.module 3 Jun 2009 21:23:19 -0000 @@ -352,18 +352,20 @@ function _boost_ob_handler($buffer) { // Ensure we're in the correct working directory, since some web servers (e.g. Apache) mess this up here. chdir(dirname($_SERVER['SCRIPT_FILENAME'])); - if ($error = error_get_last()){ - switch($error['type']){ - //case E_NOTICE: //Ignore run-time notices - //case E_USER_NOTICE: //Ignore user-generated notice message - //case E_DEPRECATED: //Ignore run-time notices - //case E_USER_DEPRECATED: //Ignore user-generated notice message - // break; - default: //Do not cache page on all other errors - return $buffer; + if function_exists('error_get_last') { + if ($error = error_get_last()){ + switch($error['type']){ + //case E_NOTICE: //Ignore run-time notices + //case E_USER_NOTICE: //Ignore user-generated notice message + //case E_DEPRECATED: //Ignore run-time notices + //case E_USER_DEPRECATED: //Ignore user-generated notice message + // break; + default: //Do not cache page on all other errors + return $buffer; + } } } - + // Check the currently set content type (at present we can't deal with // anything else than HTML) and the HTTP response code. We're going to be // exceedingly conservative here and only cache 'text/html' pages that