Module: nagvis
Branch: master
Commit: 3b521f0e8f6e3498e49cbc9b232e5579e39ccc58
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/nagvis;a=commit;h=3b521f0e8f6e3498e49cbc9b232e5579e39ccc58

Author: Lars Michelsen <[email protected]>
Date:   Tue Sep 15 13:51:46 2009 +0200

Small improvement to php error handling in the ajax handler

---

 share/server/core/functions/ajaxErrorHandler.php |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/share/server/core/functions/ajaxErrorHandler.php 
b/share/server/core/functions/ajaxErrorHandler.php
index ccb1507..7a2720c 100644
--- a/share/server/core/functions/ajaxErrorHandler.php
+++ b/share/server/core/functions/ajaxErrorHandler.php
@@ -38,6 +38,9 @@ function ajaxError($errno, $errstr, $file, $line) {
 }
 
 // Enable custom error handling
+ini_set('display_errors', 0);
 set_error_handler("ajaxError");
-
+if(function_exists('set_exception_handler')) {
+       set_exception_handler('ajaxError');
+}
 ?>


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to