don't report user errors (what was i thinking)

This commit is contained in:
Steffen Schröder 2014-05-07 14:52:45 +02:00
parent ba01624765
commit 5a29e1c3ce

View File

@ -145,7 +145,7 @@ class ErrorHandler {
$logMessage = $message . PHP_EOL . 'File&Line: ' . $fileLine . PHP_EOL . 'Trace: ' . $traceString;
logMessage($logMessage);
if ($this->reportErrors) {
if ($this->reportErrors && !$userError) {
$error = array();
$error['Type'] = 'Error';
$error['Message'] = $message;