summaryrefslogtreecommitdiff
path: root/framework/Exceptions/TErrorHandler.php
diff options
context:
space:
mode:
authorxue <>2007-09-11 02:09:27 +0000
committerxue <>2007-09-11 02:09:27 +0000
commit269c9a0010c2495db961c185e83fd52b33b04d73 (patch)
treea17692a7e974b103ca679606051b20472e9129e1 /framework/Exceptions/TErrorHandler.php
parentf5fa9b2249423f89f76b24a21d3014234b7f60f6 (diff)
Fixed #692, #700.
Diffstat (limited to 'framework/Exceptions/TErrorHandler.php')
-rw-r--r--framework/Exceptions/TErrorHandler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php
index 2d245a2f..b98ade5e 100644
--- a/framework/Exceptions/TErrorHandler.php
+++ b/framework/Exceptions/TErrorHandler.php
@@ -300,7 +300,7 @@ class TErrorHandler extends TModule
// if PHP exception, we want to show the 2nd stack level context
// because the 1st stack level is of little use (it's in error handler)
if($exception instanceof TPhpErrorException)
- $result=$trace[1];
+ $result=isset($trace[0]['file'])?$trace[0]:$trace[1];
else if($exception instanceof TInvalidOperationException)
{
// in case of getter or setter error, find out the exact file and row