From: Roland Häder Date: Thu, 8 Nov 2012 20:26:21 +0000 (+0000) Subject: Better use isHtmlOutputMode() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=89aad2c011d4734037ecf8128ed98d24d9fcd09e;p=mailer.git Better use isHtmlOutputMode() --- diff --git a/inc/handler.php b/inc/handler.php index fe9149c99e..7e428ce89d 100644 --- a/inc/handler.php +++ b/inc/handler.php @@ -50,13 +50,13 @@ function __errorHandler ($errno, $errstr, $errfile, $errline) { $errline ); - // Is installation phase? - if (isInstallationPhase()) { + // Is HTML output mode? + if (isHtmlOutputMode()) { + // Output message to user and exit + reportBug($errfile, $errline, $message); + } else { // Log error message logDebugMessage($errfile, $errline, $message); - } else { - // Output message to user and die - reportBug($errfile, $errline, $message); } // Always return false