index 515830aa6ebf0be3bd7d032934084ef0ae40d2d5..c1e7184a548eb1fda0474ae8f27bf46235672077 100644 (file)
new log("debug","all",$errfile,array(),"Type:".$errno.", Message:".$errstr.", File:".$errfile.", Line: ".$errline);
}
+ // Log errors in usage DB
+ if(class_exists('stats') && !preg_match("/No such object/",$errstr)){
+ stats::log('error', $class = 'ERROR', $category = array(), $action = __FUNCTION__,
+ $amount = 1, $duration = 0, $errno);
+ }
+
/* Create header as needed */
if ($error_collector == ""){