diff options
| author | spiderr <spider@viovio.com> | 2012-10-11 16:06:27 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2012-10-11 16:06:27 -0400 |
| commit | baf5135e46a6943a6d7889cea535fb131bc81d56 (patch) | |
| tree | cac7837f51d8e41169fbf5a5a00f29c89b2300ed | |
| parent | 9b297cc4c4c0c4f3a3cdc335e6a87c311466f6f5 (diff) | |
| download | kernel-baf5135e46a6943a6d7889cea535fb131bc81d56.tar.gz kernel-baf5135e46a6943a6d7889cea535fb131bc81d56.tar.bz2 kernel-baf5135e46a6943a6d7889cea535fb131bc81d56.zip | |
do not deump $errcontext in error email
| -rw-r--r-- | bit_error_inc.php | 6 |
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 ); } |
