Fixed bug #14312: Notice undefined index systemLog and undefined constant TYPO3_ERROR...
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 15 May 2010 13:27:11 +0000 (13:27 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 15 May 2010 13:27:11 +0000 (13:27 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7619 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php
t3lib/error/class.t3lib_error_errorhandler.php

index c5f2750..bfbc2f6 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-05-15  Christian Kuhn  <lolli@schwarzbu.ch>
 
+       * Fixed bug #14312: Notice undefined index systemLog and undefined constant TYPO3_ERRORHANDLER_MODE (thanks to Martin Müller)
        * Fixed bug #14309: Notice undefined index "error" & "debug" in index_ts.php (thanks to Martin Müller)
        * Fixed bug #14180: No Message shown when accessing backend if TYPO3_CONF_VARS[BE][adminOnly] = -1 (thanks to Georg Ringer)
 
index 3bf58a0..3681d50 100644 (file)
@@ -5638,7 +5638,8 @@ final class t3lib_div {
                }
 
                        // do custom logging
-               if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_div.php']['systemLog'])) {
+               if (isset($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_div.php']['systemLog']) &&
+                               is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_div.php']['systemLog'])) {
                        $params = array('msg'=>$msg, 'extKey'=>$extKey, 'backTrace'=>debug_backtrace(), 'severity'=>$severity);
                        $fakeThis = FALSE;
                        foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_div.php']['systemLog'] as $hookMethod)       {
index 1f51e52..442f80b 100644 (file)
@@ -152,7 +152,7 @@ class t3lib_error_ErrorHandler implements t3lib_error_ErrorHandlerInterface {
                        }
 
                                // 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,