Fixed bug #3246 - error in t3lib/config_default.php on setting display_errors
authorKarsten Dambekalns <karsten.dambekalns@typo3.org>
Mon, 24 Jul 2006 11:45:21 +0000 (11:45 +0000)
committerKarsten Dambekalns <karsten.dambekalns@typo3.org>
Mon, 24 Jul 2006 11:45:21 +0000 (11:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1653 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/config_default.php

index f703bbe..865da4d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-07-24 Karsten Dambekalns <karsten@typo3.org>
+
+       * t3lib/cconfig_default.php: Fixed bug #3246 - error in t3lib/config_default.php on setting display_errors.
+
 2006-07-23 Karsten Dambekalns <karsten@typo3.org>
 
        * t3lib/class.t3lib_div.php: Added a clarifying note to the comment for loadTCA(), thanks to Johannes Konert.
index facddc2..b7ba735 100755 (executable)
@@ -367,7 +367,7 @@ $T3_SERVICES = array();
 
 
        // Turn error logging on/off.
-if($displayErrors=intval($TYPO3_CONF_VARS['SYS']['displayErrors']!='-1'))      {
+if(($displayErrors=intval($TYPO3_CONF_VARS['SYS']['displayErrors']))!='-1')    {
        if($displayErrors==2)   {       // Special value "2" enables this feature only if $TYPO3_CONF_VARS[SYS][devIPmask] matches
                if (t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask']))    {
                        $displayErrors=1;