Fixed bug #13959: Core autoloader should accept class names only (could lead to remot...
[Packages/TYPO3.CMS.git] / t3lib / config_default.php
index 5881d1e..ef4cebd 100644 (file)
@@ -473,7 +473,7 @@ function debug($variable='', $name='*variable*', $line='*line*', $file='*file*',
                // If you wish to use the debug()-function, and it does not output something, please edit the IP mask in TYPO3_CONF_VARS
        if (!t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask']))   return;
 
-       if(@is_callable(array($GLOBALS['error'],'debug'))) {
+       if(is_object($GLOBALS['error']) && @is_callable(array($GLOBALS['error'],'debug'))) {
                $GLOBALS['error']->debug($variable, $name, $line, $file, $recursiveDepth, $debugLevel);
        } else {
                $br = ($name == '*variable*') ? 0 : $name;
@@ -481,12 +481,12 @@ function debug($variable='', $name='*variable*', $line='*line*', $file='*file*',
        }
 }
 function debugBegin() {
-       if(@is_callable(array($GLOBALS['error'],'debugBegin'))) {
+       if(is_object($GLOBALS['error']) && @is_callable(array($GLOBALS['error'],'debugBegin'))) {
                $GLOBALS['error']->debugBegin();
        }
 }
 function debugEnd() {
-       if(@is_callable(array($GLOBALS['error'],'debugEnd'))) {
+       if(is_object($GLOBALS['error']) && @is_callable(array($GLOBALS['error'],'debugEnd'))) {
                $GLOBALS['error']->debugEnd();
        }
 }