From ed07716c98257e8f78662de6ed4090f2b31a0087 Mon Sep 17 00:00:00 2001 From: quix0r Date: Thu, 8 Nov 2012 20:26:21 +0000 Subject: [PATCH] Better use isHtmlOutputMode() --- inc/handler.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.5