summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2012-10-11 16:06:27 -0400
committerspiderr <spider@viovio.com>2012-10-11 16:06:27 -0400
commitbaf5135e46a6943a6d7889cea535fb131bc81d56 (patch)
treecac7837f51d8e41169fbf5a5a00f29c89b2300ed
parent9b297cc4c4c0c4f3a3cdc335e6a87c311466f6f5 (diff)
downloadkernel-baf5135e46a6943a6d7889cea535fb131bc81d56.tar.gz
kernel-baf5135e46a6943a6d7889cea535fb131bc81d56.tar.bz2
kernel-baf5135e46a6943a6d7889cea535fb131bc81d56.zip
do not deump $errcontext in error email
-rw-r--r--bit_error_inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/bit_error_inc.php b/bit_error_inc.php
index cebf2fa..8cb8028 100644
--- a/bit_error_inc.php
+++ b/bit_error_inc.php
@@ -57,7 +57,7 @@ function bit_error_handler ( $errno, $errstr, $errfile, $errline, $errcontext=NU
// Send an e-mail to the administrator
if( $errType && defined( 'ERROR_EMAIL' ) ) {
global $gBitDb;
- $messageBody = $errType." [#$errno]: $errstr \n in $errfile on line $errline\n\n".bit_error_string( array( 'errno'=>$errno, 'db_msg'=>$errType ) ).vc( $errcontext, FALSE).vc( $_SERVER, FALSE );
+ $messageBody = $errType." [#$errno]: $errstr \n in $errfile on line $errline\n\n".bit_error_string( array( 'errno'=>$errno, 'db_msg'=>$errType ) ).vc( $_SERVER, FALSE );
mail( ERROR_EMAIL, 'PHP '.$errType.' on '.php_uname( 'n' ).': '.$errstr, $messageBody );
}
}
@@ -183,7 +183,7 @@ function bit_error_string( $iDBParms ) {
$stackTrace = $match[1][0];
}
- $globals = array(
+ $globalVars = array(
'$_POST' => $_POST,
'$_GET' => $_GET,
'$_FILES' => $_FILES,
@@ -191,7 +191,7 @@ function bit_error_string( $iDBParms ) {
);
$parameters = '';
- foreach( $globals as $global => $hash ) {
+ foreach( $globalVars as $global => $hash ) {
if( !empty( $hash )) {
$parameters .= $separator.$separator.$global.': '.$separator.var_export( $hash, TRUE );
}