From 89aad2c011d4734037ecf8128ed98d24d9fcd09e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= 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