[TYPO3-core] RFC: #1527: t3lib_svbase: Method init returns wrong value
Francois Suter
fsuter at cobweb.ch
Tue Feb 3 21:29:50 CET 2009
Hi,
> Problem:
> The method t3lib_svbase::init() should, according to inline documentation
> and usage in tslib_div::makeInstanceService() return a boolean value.
>
> In case of an error the method returns the last error code instead of
> boolean false. Using this default implementation as template results in
> always signaling a service to be available.
>
> Solution:
> Change the last line to
> return (true === $this->getLastError());
Hey, a mighty old bug solved!
Committed to 4.1 (4937), 4.2 (rev 4934) and trunk (4935).
Thanks
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-team-core
mailing list