Fixed bug #14312: Notice undefined index systemLog and undefined constant TYPO3_ERROR...
[Packages/TYPO3.CMS.git] / t3lib / error / class.t3lib_error_errorhandler.php
index 1f51e52..442f80b 100644 (file)
@@ -152,7 +152,7 @@ class t3lib_error_ErrorHandler implements t3lib_error_ErrorHandlerInterface {
                        }
 
                                // Add error message to the flashmessageQueue
                        }
 
                                // Add error message to the flashmessageQueue
-                       if (TYPO3_ERRORHANDLER_MODE == 'debug') {
+                       if (defined('TYPO3_ERRORHANDLER_MODE') && TYPO3_ERRORHANDLER_MODE == 'debug') {
                                $flashMessage = t3lib_div::makeInstance(
                                                't3lib_FlashMessage',
                                                $message,
                                $flashMessage = t3lib_div::makeInstance(
                                                't3lib_FlashMessage',
                                                $message,