From d2fdb3d574a35f3d9b842b418d209f4074769a0f Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 13 May 2011 02:24:46 +0000 Subject: [PATCH] * use ob function to avoid the errors when use edit my.php. --- www/index.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/www/index.php b/www/index.php index d1a702e4c9..1a7b30b28e 100644 --- a/www/index.php +++ b/www/index.php @@ -11,8 +11,12 @@ * @version $Id$ * @link http://www.zentao.net */ +/* Set the error reporting. */ error_reporting(0); +/* Start output buffer. */ +ob_start(); + /* Load the framework. */ include '../framework/router.class.php'; include '../framework/control.class.php'; @@ -34,3 +38,6 @@ $common = $app->loadCommon(); $app->parseRequest(); $common->checkPriv(); $app->loadModule(); + +/* Flush the buffer. */ +ob_end_flush();