[TYPO3-core] RFC: #847: error in tslib_fe->getFromCache()

Francois Suter fsuter at cobweb.ch
Fri Jul 25 17:12:02 CEST 2008


Hi,

> Why? $this->config['config']['debug'] will evaluate to null if it is not 
> set.

Are you sure? Normally what you get in such cases is a warning that the 
variable is not initialised. This why isset() is useful. Obviously this 
depends on the level of error reporting of your local PHP install, but 
it's cleaner to test if a variable is set before testing  it.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-team-core mailing list