summaryrefslogtreecommitdiff
path: root/framework/Exceptions
diff options
context:
space:
mode:
authorxue <>2006-04-30 12:51:23 +0000
committerxue <>2006-04-30 12:51:23 +0000
commitddfafaac2c1f18aca0fda3b4157acd935b9ac9a2 (patch)
treed131537413fa80aadf44feb8607eca6584e539f7 /framework/Exceptions
parent10b65d6d03ee0afc1ec1a50f320af42a79f5492b (diff)
merge from 3.0 branch till 995.
Diffstat (limited to 'framework/Exceptions')
-rw-r--r--framework/Exceptions/TErrorHandler.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php
index 4b42491e..25f421e3 100644
--- a/framework/Exceptions/TErrorHandler.php
+++ b/framework/Exceptions/TErrorHandler.php
@@ -214,10 +214,10 @@ 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)
$trace=$exception->getTrace();
- if(isset($trace[0]) && isset($trace[0]['file']) && isset($trace[0]['line']))
+ if(isset($trace[1]) && isset($trace[1]['file']) && isset($trace[1]['line']))
{
- $fileName=$trace[0]['file'];
- $errorLine=$trace[0]['line'];
+ $fileName=$trace[1]['file'];
+ $errorLine=$trace[1]['line'];
}
}
$lines=file($fileName);