diff options
author | xue <> | 2005-12-06 19:52:47 +0000 |
---|---|---|
committer | xue <> | 2005-12-06 19:52:47 +0000 |
commit | ad85f86617b7128f231462b7baf6e091b7dca8e3 (patch) | |
tree | 66dc5c23dd91abcf59eba343904cc974d6757429 /framework/Exceptions/TErrorHandler.php | |
parent | fa1bc21a7f5346c702490dffbe3cf3f9940b3cd0 (diff) |
Diffstat (limited to 'framework/Exceptions/TErrorHandler.php')
-rw-r--r-- | framework/Exceptions/TErrorHandler.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php index 7d914fca..913b3ac3 100644 --- a/framework/Exceptions/TErrorHandler.php +++ b/framework/Exceptions/TErrorHandler.php @@ -152,7 +152,8 @@ class TErrorHandler extends TComponent implements IModule $handling=true;
if(($response=Prado::getApplication()->getResponse())!==null)
$response->clear();
- header('Content-Type: text/html; charset=UTF-8');
+ if(!headers_sent())
+ header('Content-Type: text/html; charset=UTF-8');
if($param instanceof THttpException)
$this->handleExternalError($param->getStatusCode(),$param);
else if(Prado::getApplication()->getMode()==='Debug')
|